<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">

<html lang="en">

<head>
  <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
  <title>LCOV - mbi.info - /usr/include/c++/4.4.1/bits/locale_facets.h</title>
  <link rel="stylesheet" type="text/css" href="../../../../../gcov.css">
</head>

<body>

  <table width="100%" border=0 cellspacing=0 cellpadding=0>
    <tr><td class="title">LTP GCOV extension - code coverage report</td></tr>
    <tr><td class="ruler"><img src="../../../../../glass.png" width=3 height=3 alt=""></td></tr>

    <tr>
      <td width="100%">
        <table cellpadding=1 border=0 width="100%">
        <tr>
          <td class="headerItem" width="20%">Current&nbsp;view:</td>
          <td class="headerValue" width="80%" colspan=4><a href="../../../../../index.html">directory</a> - <a href="index.html">usr/include/c++/4.4.1/bits</a> - locale_facets.h</td>
        </tr>
        <tr>
          <td class="headerItem" width="20%">Test:</td>
          <td class="headerValue" width="80%" colspan=4>mbi.info</td>
        </tr>
        <tr>
          <td class="headerItem" width="20%">Date:</td>
          <td class="headerValue" width="20%">2010-01-23</td>
          <td width="20%"></td>
          <td class="headerItem" width="20%">Instrumented&nbsp;lines:</td>
          <td class="headerValue" width="20%">5</td>
        </tr>
        <tr>
          <td class="headerItem" width="20%">Code&nbsp;covered:</td>
          <td class="headerValue" width="20%">0.0 %</td>
          <td width="20%"></td>
          <td class="headerItem" width="20%">Executed&nbsp;lines:</td>
          <td class="headerValue" width="20%">0</td>
        </tr>
        </table>
      </td>
    </tr>
    <tr><td class="ruler"><img src="../../../../../glass.png" width=3 height=3 alt=""></td></tr>
  </table>

  <table cellpadding=0 cellspacing=0 border=0>
    <tr>
      <td><br></td>
    </tr>
    <tr>
      <td><pre class="source">
<span class="lineNum">       1 </span>                : // Locale support -*- C++ -*-
<span class="lineNum">       2 </span>                : 
<span class="lineNum">       3 </span>                : // Copyright (C) 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005,
<span class="lineNum">       4 </span>                : // 2006, 2007, 2008, 2009
<span class="lineNum">       5 </span>                : // Free Software Foundation, Inc.
<span class="lineNum">       6 </span>                : //
<span class="lineNum">       7 </span>                : // This file is part of the GNU ISO C++ Library.  This library is free
<span class="lineNum">       8 </span>                : // software; you can redistribute it and/or modify it under the
<span class="lineNum">       9 </span>                : // terms of the GNU General Public License as published by the
<span class="lineNum">      10 </span>                : // Free Software Foundation; either version 3, or (at your option)
<span class="lineNum">      11 </span>                : // any later version.
<span class="lineNum">      12 </span>                : 
<span class="lineNum">      13 </span>                : // This library is distributed in the hope that it will be useful,
<span class="lineNum">      14 </span>                : // but WITHOUT ANY WARRANTY; without even the implied warranty of
<span class="lineNum">      15 </span>                : // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
<span class="lineNum">      16 </span>                : // GNU General Public License for more details.
<span class="lineNum">      17 </span>                : 
<span class="lineNum">      18 </span>                : // Under Section 7 of GPL version 3, you are granted additional
<span class="lineNum">      19 </span>                : // permissions described in the GCC Runtime Library Exception, version
<span class="lineNum">      20 </span>                : // 3.1, as published by the Free Software Foundation.
<span class="lineNum">      21 </span>                : 
<span class="lineNum">      22 </span>                : // You should have received a copy of the GNU General Public License and
<span class="lineNum">      23 </span>                : // a copy of the GCC Runtime Library Exception along with this program;
<span class="lineNum">      24 </span>                : // see the files COPYING3 and COPYING.RUNTIME respectively.  If not, see
<span class="lineNum">      25 </span>                : // &lt;http://www.gnu.org/licenses/&gt;.
<span class="lineNum">      26 </span>                : 
<span class="lineNum">      27 </span>                : /** @file locale_facets.h
<span class="lineNum">      28 </span>                :  *  This is an internal header file, included by other library headers.
<span class="lineNum">      29 </span>                :  *  You should not attempt to use it directly.
<span class="lineNum">      30 </span>                :  */
<span class="lineNum">      31 </span>                : 
<span class="lineNum">      32 </span>                : //
<span class="lineNum">      33 </span>                : // ISO C++ 14882: 22.1  Locales
<span class="lineNum">      34 </span>                : //
<span class="lineNum">      35 </span>                : 
<span class="lineNum">      36 </span>                : #ifndef _LOCALE_FACETS_H
<span class="lineNum">      37 </span>                : #define _LOCALE_FACETS_H 1
<span class="lineNum">      38 </span>                : 
<span class="lineNum">      39 </span>                : #pragma GCC system_header
<span class="lineNum">      40 </span>                : 
<span class="lineNum">      41 </span>                : #include &lt;cwctype&gt;        // For wctype_t
<span class="lineNum">      42 </span>                : #include &lt;cctype&gt;
<span class="lineNum">      43 </span>                : #include &lt;bits/ctype_base.h&gt;      
<span class="lineNum">      44 </span>                : #include &lt;iosfwd&gt;
<span class="lineNum">      45 </span>                : #include &lt;bits/ios_base.h&gt;  // For ios_base, ios_base::iostate
<span class="lineNum">      46 </span>                : #include &lt;streambuf&gt;
<span class="lineNum">      47 </span>                : #include &lt;bits/cpp_type_traits.h&gt;
<span class="lineNum">      48 </span>                : #include &lt;ext/type_traits.h&gt;
<span class="lineNum">      49 </span>                : #include &lt;ext/numeric_traits.h&gt;
<span class="lineNum">      50 </span>                : #include &lt;bits/streambuf_iterator.h&gt;
<span class="lineNum">      51 </span>                : 
<span class="lineNum">      52 </span>                : _GLIBCXX_BEGIN_NAMESPACE(std)
<span class="lineNum">      53 </span>                : 
<span class="lineNum">      54 </span>                :   // NB: Don't instantiate required wchar_t facets if no wchar_t support.
<span class="lineNum">      55 </span>                : #ifdef _GLIBCXX_USE_WCHAR_T
<span class="lineNum">      56 </span>                : # define  _GLIBCXX_NUM_FACETS 28
<span class="lineNum">      57 </span>                : #else
<span class="lineNum">      58 </span>                : # define  _GLIBCXX_NUM_FACETS 14
<span class="lineNum">      59 </span>                : #endif
<span class="lineNum">      60 </span>                : 
<span class="lineNum">      61 </span>                :   // Convert string to numeric value of type _Tv and store results.
<span class="lineNum">      62 </span>                :   // NB: This is specialized for all required types, there is no
<span class="lineNum">      63 </span>                :   // generic definition.
<span class="lineNum">      64 </span>                :   template&lt;typename _Tv&gt;
<span class="lineNum">      65 </span>                :     void
<span class="lineNum">      66 </span>                :     __convert_to_v(const char* __in, _Tv&amp; __out, ios_base::iostate&amp; __err,
<span class="lineNum">      67 </span>                :                    const __c_locale&amp; __cloc);
<span class="lineNum">      68 </span>                : 
<span class="lineNum">      69 </span>                :   // Explicit specializations for required types.
<span class="lineNum">      70 </span>                :   template&lt;&gt;
<span class="lineNum">      71 </span>                :     void
<span class="lineNum">      72 </span>                :     __convert_to_v(const char*, float&amp;, ios_base::iostate&amp;,
<span class="lineNum">      73 </span>                :                    const __c_locale&amp;);
<span class="lineNum">      74 </span>                : 
<span class="lineNum">      75 </span>                :   template&lt;&gt;
<span class="lineNum">      76 </span>                :     void
<span class="lineNum">      77 </span>                :     __convert_to_v(const char*, double&amp;, ios_base::iostate&amp;,
<span class="lineNum">      78 </span>                :                    const __c_locale&amp;);
<span class="lineNum">      79 </span>                : 
<span class="lineNum">      80 </span>                :   template&lt;&gt;
<span class="lineNum">      81 </span>                :     void
<span class="lineNum">      82 </span>                :     __convert_to_v(const char*, long double&amp;, ios_base::iostate&amp;,
<span class="lineNum">      83 </span>                :                    const __c_locale&amp;);
<span class="lineNum">      84 </span>                : 
<span class="lineNum">      85 </span>                :   // NB: __pad is a struct, rather than a function, so it can be
<span class="lineNum">      86 </span>                :   // partially-specialized.
<span class="lineNum">      87 </span>                :   template&lt;typename _CharT, typename _Traits&gt;
<span class="lineNum">      88 </span>                :     struct __pad
<span class="lineNum">      89 </span>                :     {
<span class="lineNum">      90 </span>                :       static void
<span class="lineNum">      91 </span>                :       _S_pad(ios_base&amp; __io, _CharT __fill, _CharT* __news,
<span class="lineNum">      92 </span>                :              const _CharT* __olds, streamsize __newlen, streamsize __oldlen);
<span class="lineNum">      93 </span>                :     };
<span class="lineNum">      94 </span>                : 
<span class="lineNum">      95 </span>                :   // Used by both numeric and monetary facets.
<span class="lineNum">      96 </span>                :   // Inserts &quot;group separator&quot; characters into an array of characters.
<span class="lineNum">      97 </span>                :   // It's recursive, one iteration per group.  It moves the characters
<span class="lineNum">      98 </span>                :   // in the buffer this way: &quot;xxxx12345&quot; -&gt; &quot;12,345xxx&quot;.  Call this
<span class="lineNum">      99 </span>                :   // only with __gsize != 0.
<span class="lineNum">     100 </span>                :   template&lt;typename _CharT&gt;
<span class="lineNum">     101 </span>                :     _CharT*
<span class="lineNum">     102 </span>                :     __add_grouping(_CharT* __s, _CharT __sep,
<span class="lineNum">     103 </span>                :                    const char* __gbeg, size_t __gsize,
<span class="lineNum">     104 </span>                :                    const _CharT* __first, const _CharT* __last);
<span class="lineNum">     105 </span>                : 
<span class="lineNum">     106 </span>                :   // This template permits specializing facet output code for
<span class="lineNum">     107 </span>                :   // ostreambuf_iterator.  For ostreambuf_iterator, sputn is
<span class="lineNum">     108 </span>                :   // significantly more efficient than incrementing iterators.
<span class="lineNum">     109 </span>                :   template&lt;typename _CharT&gt;
<span class="lineNum">     110 </span>                :     inline
<span class="lineNum">     111 </span>                :     ostreambuf_iterator&lt;_CharT&gt;
<span class="lineNum">     112 </span>                :     __write(ostreambuf_iterator&lt;_CharT&gt; __s, const _CharT* __ws, int __len)
<span class="lineNum">     113 </span>                :     {
<span class="lineNum">     114 </span>                :       __s._M_put(__ws, __len);
<span class="lineNum">     115 </span>                :       return __s;
<span class="lineNum">     116 </span>                :     }
<span class="lineNum">     117 </span>                : 
<span class="lineNum">     118 </span>                :   // This is the unspecialized form of the template.
<span class="lineNum">     119 </span>                :   template&lt;typename _CharT, typename _OutIter&gt;
<span class="lineNum">     120 </span>                :     inline
<span class="lineNum">     121 </span>                :     _OutIter
<span class="lineNum">     122 </span>                :     __write(_OutIter __s, const _CharT* __ws, int __len)
<span class="lineNum">     123 </span>                :     {
<span class="lineNum">     124 </span>                :       for (int __j = 0; __j &lt; __len; __j++, ++__s)
<span class="lineNum">     125 </span>                :         *__s = __ws[__j];
<span class="lineNum">     126 </span>                :       return __s;
<span class="lineNum">     127 </span>                :     }
<span class="lineNum">     128 </span>                : 
<span class="lineNum">     129 </span>                : 
<span class="lineNum">     130 </span>                :   // 22.2.1.1  Template class ctype
<span class="lineNum">     131 </span>                :   // Include host and configuration specific ctype enums for ctype_base.
<span class="lineNum">     132 </span>                : 
<span class="lineNum">     133 </span>                :   // Common base for ctype&lt;_CharT&gt;.
<span class="lineNum">     134 </span>                :   /**
<span class="lineNum">     135 </span>                :    *  @brief  Common base for ctype facet
<span class="lineNum">     136 </span>                :    *
<span class="lineNum">     137 </span>                :    *  This template class provides implementations of the public functions
<span class="lineNum">     138 </span>                :    *  that forward to the protected virtual functions.
<span class="lineNum">     139 </span>                :    *
<span class="lineNum">     140 </span>                :    *  This template also provides abstract stubs for the protected virtual
<span class="lineNum">     141 </span>                :    *  functions.
<span class="lineNum">     142 </span>                :   */
<span class="lineNum">     143 </span>                :   template&lt;typename _CharT&gt;
<span class="lineNum">     144 </span>                :     class __ctype_abstract_base : public locale::facet, public ctype_base
<span class="lineNum">     145 </span>                :     {
<span class="lineNum">     146 </span>                :     public:
<span class="lineNum">     147 </span>                :       // Types:
<span class="lineNum">     148 </span>                :       /// Typedef for the template parameter
<span class="lineNum">     149 </span>                :       typedef _CharT char_type;
<span class="lineNum">     150 </span>                : 
<span class="lineNum">     151 </span>                :       /**
<span class="lineNum">     152 </span>                :        *  @brief  Test char_type classification.
<span class="lineNum">     153 </span>                :        *
<span class="lineNum">     154 </span>                :        *  This function finds a mask M for @a c and compares it to mask @a m.
<span class="lineNum">     155 </span>                :        *  It does so by returning the value of ctype&lt;char_type&gt;::do_is().
<span class="lineNum">     156 </span>                :        *
<span class="lineNum">     157 </span>                :        *  @param c  The char_type to compare the mask of.
<span class="lineNum">     158 </span>                :        *  @param m  The mask to compare against.
<span class="lineNum">     159 </span>                :        *  @return  (M &amp; m) != 0.
<span class="lineNum">     160 </span>                :       */
<span class="lineNum">     161 </span>                :       bool
<span class="lineNum">     162 </span>                :       is(mask __m, char_type __c) const
<span class="lineNum">     163 </span>                :       { return this-&gt;do_is(__m, __c); }
<span class="lineNum">     164 </span>                : 
<span class="lineNum">     165 </span>                :       /**
<span class="lineNum">     166 </span>                :        *  @brief  Return a mask array.
<span class="lineNum">     167 </span>                :        *
<span class="lineNum">     168 </span>                :        *  This function finds the mask for each char_type in the range [lo,hi)
<span class="lineNum">     169 </span>                :        *  and successively writes it to vec.  vec must have as many elements
<span class="lineNum">     170 </span>                :        *  as the char array.  It does so by returning the value of
<span class="lineNum">     171 </span>                :        *  ctype&lt;char_type&gt;::do_is().
<span class="lineNum">     172 </span>                :        *
<span class="lineNum">     173 </span>                :        *  @param lo  Pointer to start of range.
<span class="lineNum">     174 </span>                :        *  @param hi  Pointer to end of range.
<span class="lineNum">     175 </span>                :        *  @param vec  Pointer to an array of mask storage.
<span class="lineNum">     176 </span>                :        *  @return  @a hi.
<span class="lineNum">     177 </span>                :       */
<span class="lineNum">     178 </span>                :       const char_type*
<span class="lineNum">     179 </span>                :       is(const char_type *__lo, const char_type *__hi, mask *__vec) const
<span class="lineNum">     180 </span>                :       { return this-&gt;do_is(__lo, __hi, __vec); }
<span class="lineNum">     181 </span>                : 
<span class="lineNum">     182 </span>                :       /**
<span class="lineNum">     183 </span>                :        *  @brief  Find char_type matching a mask
<span class="lineNum">     184 </span>                :        *
<span class="lineNum">     185 </span>                :        *  This function searches for and returns the first char_type c in
<span class="lineNum">     186 </span>                :        *  [lo,hi) for which is(m,c) is true.  It does so by returning
<span class="lineNum">     187 </span>                :        *  ctype&lt;char_type&gt;::do_scan_is().
<span class="lineNum">     188 </span>                :        *
<span class="lineNum">     189 </span>                :        *  @param m  The mask to compare against.
<span class="lineNum">     190 </span>                :        *  @param lo  Pointer to start of range.
<span class="lineNum">     191 </span>                :        *  @param hi  Pointer to end of range.
<span class="lineNum">     192 </span>                :        *  @return  Pointer to matching char_type if found, else @a hi.
<span class="lineNum">     193 </span>                :       */
<span class="lineNum">     194 </span>                :       const char_type*
<span class="lineNum">     195 </span>                :       scan_is(mask __m, const char_type* __lo, const char_type* __hi) const
<span class="lineNum">     196 </span>                :       { return this-&gt;do_scan_is(__m, __lo, __hi); }
<span class="lineNum">     197 </span>                : 
<span class="lineNum">     198 </span>                :       /**
<span class="lineNum">     199 </span>                :        *  @brief  Find char_type not matching a mask
<span class="lineNum">     200 </span>                :        *
<span class="lineNum">     201 </span>                :        *  This function searches for and returns the first char_type c in
<span class="lineNum">     202 </span>                :        *  [lo,hi) for which is(m,c) is false.  It does so by returning
<span class="lineNum">     203 </span>                :        *  ctype&lt;char_type&gt;::do_scan_not().
<span class="lineNum">     204 </span>                :        *
<span class="lineNum">     205 </span>                :        *  @param m  The mask to compare against.
<span class="lineNum">     206 </span>                :        *  @param lo  Pointer to first char in range.
<span class="lineNum">     207 </span>                :        *  @param hi  Pointer to end of range.
<span class="lineNum">     208 </span>                :        *  @return  Pointer to non-matching char if found, else @a hi.
<span class="lineNum">     209 </span>                :       */
<span class="lineNum">     210 </span>                :       const char_type*
<span class="lineNum">     211 </span>                :       scan_not(mask __m, const char_type* __lo, const char_type* __hi) const
<span class="lineNum">     212 </span>                :       { return this-&gt;do_scan_not(__m, __lo, __hi); }
<span class="lineNum">     213 </span>                : 
<span class="lineNum">     214 </span>                :       /**
<span class="lineNum">     215 </span>                :        *  @brief  Convert to uppercase.
<span class="lineNum">     216 </span>                :        *
<span class="lineNum">     217 </span>                :        *  This function converts the argument to uppercase if possible.
<span class="lineNum">     218 </span>                :        *  If not possible (for example, '2'), returns the argument.  It does
<span class="lineNum">     219 </span>                :        *  so by returning ctype&lt;char_type&gt;::do_toupper().
<span class="lineNum">     220 </span>                :        *
<span class="lineNum">     221 </span>                :        *  @param c  The char_type to convert.
<span class="lineNum">     222 </span>                :        *  @return  The uppercase char_type if convertible, else @a c.
<span class="lineNum">     223 </span>                :       */
<span class="lineNum">     224 </span>                :       char_type
<span class="lineNum">     225 </span>                :       toupper(char_type __c) const
<span class="lineNum">     226 </span>                :       { return this-&gt;do_toupper(__c); }
<span class="lineNum">     227 </span>                : 
<span class="lineNum">     228 </span>                :       /**
<span class="lineNum">     229 </span>                :        *  @brief  Convert array to uppercase.
<span class="lineNum">     230 </span>                :        *
<span class="lineNum">     231 </span>                :        *  This function converts each char_type in the range [lo,hi) to
<span class="lineNum">     232 </span>                :        *  uppercase if possible.  Other elements remain untouched.  It does so
<span class="lineNum">     233 </span>                :        *  by returning ctype&lt;char_type&gt;:: do_toupper(lo, hi).
<span class="lineNum">     234 </span>                :        *
<span class="lineNum">     235 </span>                :        *  @param lo  Pointer to start of range.
<span class="lineNum">     236 </span>                :        *  @param hi  Pointer to end of range.
<span class="lineNum">     237 </span>                :        *  @return  @a hi.
<span class="lineNum">     238 </span>                :       */
<span class="lineNum">     239 </span>                :       const char_type*
<span class="lineNum">     240 </span>                :       toupper(char_type *__lo, const char_type* __hi) const
<span class="lineNum">     241 </span>                :       { return this-&gt;do_toupper(__lo, __hi); }
<span class="lineNum">     242 </span>                : 
<span class="lineNum">     243 </span>                :       /**
<span class="lineNum">     244 </span>                :        *  @brief  Convert to lowercase.
<span class="lineNum">     245 </span>                :        *
<span class="lineNum">     246 </span>                :        *  This function converts the argument to lowercase if possible.  If
<span class="lineNum">     247 </span>                :        *  not possible (for example, '2'), returns the argument.  It does so
<span class="lineNum">     248 </span>                :        *  by returning ctype&lt;char_type&gt;::do_tolower(c).
<span class="lineNum">     249 </span>                :        *
<span class="lineNum">     250 </span>                :        *  @param c  The char_type to convert.
<span class="lineNum">     251 </span>                :        *  @return  The lowercase char_type if convertible, else @a c.
<span class="lineNum">     252 </span>                :       */
<span class="lineNum">     253 </span>                :       char_type
<span class="lineNum">     254 </span>                :       tolower(char_type __c) const
<span class="lineNum">     255 </span>                :       { return this-&gt;do_tolower(__c); }
<span class="lineNum">     256 </span>                : 
<span class="lineNum">     257 </span>                :       /**
<span class="lineNum">     258 </span>                :        *  @brief  Convert array to lowercase.
<span class="lineNum">     259 </span>                :        *
<span class="lineNum">     260 </span>                :        *  This function converts each char_type in the range [lo,hi) to
<span class="lineNum">     261 </span>                :        *  lowercase if possible.  Other elements remain untouched.  It does so
<span class="lineNum">     262 </span>                :        *  by returning ctype&lt;char_type&gt;:: do_tolower(lo, hi).
<span class="lineNum">     263 </span>                :        *
<span class="lineNum">     264 </span>                :        *  @param lo  Pointer to start of range.
<span class="lineNum">     265 </span>                :        *  @param hi  Pointer to end of range.
<span class="lineNum">     266 </span>                :        *  @return  @a hi.
<span class="lineNum">     267 </span>                :       */
<span class="lineNum">     268 </span>                :       const char_type*
<span class="lineNum">     269 </span>                :       tolower(char_type* __lo, const char_type* __hi) const
<span class="lineNum">     270 </span>                :       { return this-&gt;do_tolower(__lo, __hi); }
<span class="lineNum">     271 </span>                : 
<span class="lineNum">     272 </span>                :       /**
<span class="lineNum">     273 </span>                :        *  @brief  Widen char to char_type
<span class="lineNum">     274 </span>                :        *
<span class="lineNum">     275 </span>                :        *  This function converts the char argument to char_type using the
<span class="lineNum">     276 </span>                :        *  simplest reasonable transformation.  It does so by returning
<span class="lineNum">     277 </span>                :        *  ctype&lt;char_type&gt;::do_widen(c).
<span class="lineNum">     278 </span>                :        *
<span class="lineNum">     279 </span>                :        *  Note: this is not what you want for codepage conversions.  See
<span class="lineNum">     280 </span>                :        *  codecvt for that.
<span class="lineNum">     281 </span>                :        *
<span class="lineNum">     282 </span>                :        *  @param c  The char to convert.
<span class="lineNum">     283 </span>                :        *  @return  The converted char_type.
<span class="lineNum">     284 </span>                :       */
<span class="lineNum">     285 </span>                :       char_type
<span class="lineNum">     286 </span>                :       widen(char __c) const
<span class="lineNum">     287 </span>                :       { return this-&gt;do_widen(__c); }
<span class="lineNum">     288 </span>                : 
<span class="lineNum">     289 </span>                :       /**
<span class="lineNum">     290 </span>                :        *  @brief  Widen array to char_type
<span class="lineNum">     291 </span>                :        *
<span class="lineNum">     292 </span>                :        *  This function converts each char in the input to char_type using the
<span class="lineNum">     293 </span>                :        *  simplest reasonable transformation.  It does so by returning
<span class="lineNum">     294 </span>                :        *  ctype&lt;char_type&gt;::do_widen(c).
<span class="lineNum">     295 </span>                :        *
<span class="lineNum">     296 </span>                :        *  Note: this is not what you want for codepage conversions.  See
<span class="lineNum">     297 </span>                :        *  codecvt for that.
<span class="lineNum">     298 </span>                :        *
<span class="lineNum">     299 </span>                :        *  @param lo  Pointer to start of range.
<span class="lineNum">     300 </span>                :        *  @param hi  Pointer to end of range.
<span class="lineNum">     301 </span>                :        *  @param to  Pointer to the destination array.
<span class="lineNum">     302 </span>                :        *  @return  @a hi.
<span class="lineNum">     303 </span>                :       */
<span class="lineNum">     304 </span>                :       const char*
<span class="lineNum">     305 </span>                :       widen(const char* __lo, const char* __hi, char_type* __to) const
<span class="lineNum">     306 </span>                :       { return this-&gt;do_widen(__lo, __hi, __to); }
<span class="lineNum">     307 </span>                : 
<span class="lineNum">     308 </span>                :       /**
<span class="lineNum">     309 </span>                :        *  @brief  Narrow char_type to char
<span class="lineNum">     310 </span>                :        *
<span class="lineNum">     311 </span>                :        *  This function converts the char_type to char using the simplest
<span class="lineNum">     312 </span>                :        *  reasonable transformation.  If the conversion fails, dfault is
<span class="lineNum">     313 </span>                :        *  returned instead.  It does so by returning
<span class="lineNum">     314 </span>                :        *  ctype&lt;char_type&gt;::do_narrow(c).
<span class="lineNum">     315 </span>                :        *
<span class="lineNum">     316 </span>                :        *  Note: this is not what you want for codepage conversions.  See
<span class="lineNum">     317 </span>                :        *  codecvt for that.
<span class="lineNum">     318 </span>                :        *
<span class="lineNum">     319 </span>                :        *  @param c  The char_type to convert.
<span class="lineNum">     320 </span>                :        *  @param dfault  Char to return if conversion fails.
<span class="lineNum">     321 </span>                :        *  @return  The converted char.
<span class="lineNum">     322 </span>                :       */
<span class="lineNum">     323 </span>                :       char
<span class="lineNum">     324 </span>                :       narrow(char_type __c, char __dfault) const
<span class="lineNum">     325 </span>                :       { return this-&gt;do_narrow(__c, __dfault); }
<span class="lineNum">     326 </span>                : 
<span class="lineNum">     327 </span>                :       /**
<span class="lineNum">     328 </span>                :        *  @brief  Narrow array to char array
<span class="lineNum">     329 </span>                :        *
<span class="lineNum">     330 </span>                :        *  This function converts each char_type in the input to char using the
<span class="lineNum">     331 </span>                :        *  simplest reasonable transformation and writes the results to the
<span class="lineNum">     332 </span>                :        *  destination array.  For any char_type in the input that cannot be
<span class="lineNum">     333 </span>                :        *  converted, @a dfault is used instead.  It does so by returning
<span class="lineNum">     334 </span>                :        *  ctype&lt;char_type&gt;::do_narrow(lo, hi, dfault, to).
<span class="lineNum">     335 </span>                :        *
<span class="lineNum">     336 </span>                :        *  Note: this is not what you want for codepage conversions.  See
<span class="lineNum">     337 </span>                :        *  codecvt for that.
<span class="lineNum">     338 </span>                :        *
<span class="lineNum">     339 </span>                :        *  @param lo  Pointer to start of range.
<span class="lineNum">     340 </span>                :        *  @param hi  Pointer to end of range.
<span class="lineNum">     341 </span>                :        *  @param dfault  Char to use if conversion fails.
<span class="lineNum">     342 </span>                :        *  @param to  Pointer to the destination array.
<span class="lineNum">     343 </span>                :        *  @return  @a hi.
<span class="lineNum">     344 </span>                :       */
<span class="lineNum">     345 </span>                :       const char_type*
<span class="lineNum">     346 </span>                :       narrow(const char_type* __lo, const char_type* __hi,
<span class="lineNum">     347 </span>                :               char __dfault, char *__to) const
<span class="lineNum">     348 </span>                :       { return this-&gt;do_narrow(__lo, __hi, __dfault, __to); }
<span class="lineNum">     349 </span>                : 
<span class="lineNum">     350 </span>                :     protected:
<span class="lineNum">     351 </span>                :       explicit
<span class="lineNum">     352 </span>                :       __ctype_abstract_base(size_t __refs = 0): facet(__refs) { }
<span class="lineNum">     353 </span>                : 
<span class="lineNum">     354 </span>                :       virtual
<span class="lineNum">     355 </span>                :       ~__ctype_abstract_base() { }
<span class="lineNum">     356 </span>                : 
<span class="lineNum">     357 </span>                :       /**
<span class="lineNum">     358 </span>                :        *  @brief  Test char_type classification.
<span class="lineNum">     359 </span>                :        *
<span class="lineNum">     360 </span>                :        *  This function finds a mask M for @a c and compares it to mask @a m.
<span class="lineNum">     361 </span>                :        *
<span class="lineNum">     362 </span>                :        *  do_is() is a hook for a derived facet to change the behavior of
<span class="lineNum">     363 </span>                :        *  classifying.  do_is() must always return the same result for the
<span class="lineNum">     364 </span>                :        *  same input.
<span class="lineNum">     365 </span>                :        *
<span class="lineNum">     366 </span>                :        *  @param c  The char_type to find the mask of.
<span class="lineNum">     367 </span>                :        *  @param m  The mask to compare against.
<span class="lineNum">     368 </span>                :        *  @return  (M &amp; m) != 0.
<span class="lineNum">     369 </span>                :       */
<span class="lineNum">     370 </span>                :       virtual bool
<span class="lineNum">     371 </span>                :       do_is(mask __m, char_type __c) const = 0;
<span class="lineNum">     372 </span>                : 
<span class="lineNum">     373 </span>                :       /**
<span class="lineNum">     374 </span>                :        *  @brief  Return a mask array.
<span class="lineNum">     375 </span>                :        *
<span class="lineNum">     376 </span>                :        *  This function finds the mask for each char_type in the range [lo,hi)
<span class="lineNum">     377 </span>                :        *  and successively writes it to vec.  vec must have as many elements
<span class="lineNum">     378 </span>                :        *  as the input.
<span class="lineNum">     379 </span>                :        *
<span class="lineNum">     380 </span>                :        *  do_is() is a hook for a derived facet to change the behavior of
<span class="lineNum">     381 </span>                :        *  classifying.  do_is() must always return the same result for the
<span class="lineNum">     382 </span>                :        *  same input.
<span class="lineNum">     383 </span>                :        *
<span class="lineNum">     384 </span>                :        *  @param lo  Pointer to start of range.
<span class="lineNum">     385 </span>                :        *  @param hi  Pointer to end of range.
<span class="lineNum">     386 </span>                :        *  @param vec  Pointer to an array of mask storage.
<span class="lineNum">     387 </span>                :        *  @return  @a hi.
<span class="lineNum">     388 </span>                :       */
<span class="lineNum">     389 </span>                :       virtual const char_type*
<span class="lineNum">     390 </span>                :       do_is(const char_type* __lo, const char_type* __hi,
<span class="lineNum">     391 </span>                :             mask* __vec) const = 0;
<span class="lineNum">     392 </span>                : 
<span class="lineNum">     393 </span>                :       /**
<span class="lineNum">     394 </span>                :        *  @brief  Find char_type matching mask
<span class="lineNum">     395 </span>                :        *
<span class="lineNum">     396 </span>                :        *  This function searches for and returns the first char_type c in
<span class="lineNum">     397 </span>                :        *  [lo,hi) for which is(m,c) is true.
<span class="lineNum">     398 </span>                :        *
<span class="lineNum">     399 </span>                :        *  do_scan_is() is a hook for a derived facet to change the behavior of
<span class="lineNum">     400 </span>                :        *  match searching.  do_is() must always return the same result for the
<span class="lineNum">     401 </span>                :        *  same input.
<span class="lineNum">     402 </span>                :        *
<span class="lineNum">     403 </span>                :        *  @param m  The mask to compare against.
<span class="lineNum">     404 </span>                :        *  @param lo  Pointer to start of range.
<span class="lineNum">     405 </span>                :        *  @param hi  Pointer to end of range.
<span class="lineNum">     406 </span>                :        *  @return  Pointer to a matching char_type if found, else @a hi.
<span class="lineNum">     407 </span>                :       */
<span class="lineNum">     408 </span>                :       virtual const char_type*
<span class="lineNum">     409 </span>                :       do_scan_is(mask __m, const char_type* __lo,
<span class="lineNum">     410 </span>                :                  const char_type* __hi) const = 0;
<span class="lineNum">     411 </span>                : 
<span class="lineNum">     412 </span>                :       /**
<span class="lineNum">     413 </span>                :        *  @brief  Find char_type not matching mask
<span class="lineNum">     414 </span>                :        *
<span class="lineNum">     415 </span>                :        *  This function searches for and returns a pointer to the first
<span class="lineNum">     416 </span>                :        *  char_type c of [lo,hi) for which is(m,c) is false.
<span class="lineNum">     417 </span>                :        *
<span class="lineNum">     418 </span>                :        *  do_scan_is() is a hook for a derived facet to change the behavior of
<span class="lineNum">     419 </span>                :        *  match searching.  do_is() must always return the same result for the
<span class="lineNum">     420 </span>                :        *  same input.
<span class="lineNum">     421 </span>                :        *
<span class="lineNum">     422 </span>                :        *  @param m  The mask to compare against.
<span class="lineNum">     423 </span>                :        *  @param lo  Pointer to start of range.
<span class="lineNum">     424 </span>                :        *  @param hi  Pointer to end of range.
<span class="lineNum">     425 </span>                :        *  @return  Pointer to a non-matching char_type if found, else @a hi.
<span class="lineNum">     426 </span>                :       */
<span class="lineNum">     427 </span>                :       virtual const char_type*
<span class="lineNum">     428 </span>                :       do_scan_not(mask __m, const char_type* __lo,
<span class="lineNum">     429 </span>                :                   const char_type* __hi) const = 0;
<span class="lineNum">     430 </span>                : 
<span class="lineNum">     431 </span>                :       /**
<span class="lineNum">     432 </span>                :        *  @brief  Convert to uppercase.
<span class="lineNum">     433 </span>                :        *
<span class="lineNum">     434 </span>                :        *  This virtual function converts the char_type argument to uppercase
<span class="lineNum">     435 </span>                :        *  if possible.  If not possible (for example, '2'), returns the
<span class="lineNum">     436 </span>                :        *  argument.
<span class="lineNum">     437 </span>                :        *
<span class="lineNum">     438 </span>                :        *  do_toupper() is a hook for a derived facet to change the behavior of
<span class="lineNum">     439 </span>                :        *  uppercasing.  do_toupper() must always return the same result for
<span class="lineNum">     440 </span>                :        *  the same input.
<span class="lineNum">     441 </span>                :        *
<span class="lineNum">     442 </span>                :        *  @param c  The char_type to convert.
<span class="lineNum">     443 </span>                :        *  @return  The uppercase char_type if convertible, else @a c.
<span class="lineNum">     444 </span>                :       */
<span class="lineNum">     445 </span>                :       virtual char_type
<span class="lineNum">     446 </span>                :       do_toupper(char_type) const = 0;
<span class="lineNum">     447 </span>                : 
<span class="lineNum">     448 </span>                :       /**
<span class="lineNum">     449 </span>                :        *  @brief  Convert array to uppercase.
<span class="lineNum">     450 </span>                :        *
<span class="lineNum">     451 </span>                :        *  This virtual function converts each char_type in the range [lo,hi)
<span class="lineNum">     452 </span>                :        *  to uppercase if possible.  Other elements remain untouched.
<span class="lineNum">     453 </span>                :        *
<span class="lineNum">     454 </span>                :        *  do_toupper() is a hook for a derived facet to change the behavior of
<span class="lineNum">     455 </span>                :        *  uppercasing.  do_toupper() must always return the same result for
<span class="lineNum">     456 </span>                :        *  the same input.
<span class="lineNum">     457 </span>                :        *
<span class="lineNum">     458 </span>                :        *  @param lo  Pointer to start of range.
<span class="lineNum">     459 </span>                :        *  @param hi  Pointer to end of range.
<span class="lineNum">     460 </span>                :        *  @return  @a hi.
<span class="lineNum">     461 </span>                :       */
<span class="lineNum">     462 </span>                :       virtual const char_type*
<span class="lineNum">     463 </span>                :       do_toupper(char_type* __lo, const char_type* __hi) const = 0;
<span class="lineNum">     464 </span>                : 
<span class="lineNum">     465 </span>                :       /**
<span class="lineNum">     466 </span>                :        *  @brief  Convert to lowercase.
<span class="lineNum">     467 </span>                :        *
<span class="lineNum">     468 </span>                :        *  This virtual function converts the argument to lowercase if
<span class="lineNum">     469 </span>                :        *  possible.  If not possible (for example, '2'), returns the argument.
<span class="lineNum">     470 </span>                :        *
<span class="lineNum">     471 </span>                :        *  do_tolower() is a hook for a derived facet to change the behavior of
<span class="lineNum">     472 </span>                :        *  lowercasing.  do_tolower() must always return the same result for
<span class="lineNum">     473 </span>                :        *  the same input.
<span class="lineNum">     474 </span>                :        *
<span class="lineNum">     475 </span>                :        *  @param c  The char_type to convert.
<span class="lineNum">     476 </span>                :        *  @return  The lowercase char_type if convertible, else @a c.
<span class="lineNum">     477 </span>                :       */
<span class="lineNum">     478 </span>                :       virtual char_type
<span class="lineNum">     479 </span>                :       do_tolower(char_type) const = 0;
<span class="lineNum">     480 </span>                : 
<span class="lineNum">     481 </span>                :       /**
<span class="lineNum">     482 </span>                :        *  @brief  Convert array to lowercase.
<span class="lineNum">     483 </span>                :        *
<span class="lineNum">     484 </span>                :        *  This virtual function converts each char_type in the range [lo,hi)
<span class="lineNum">     485 </span>                :        *  to lowercase if possible.  Other elements remain untouched.
<span class="lineNum">     486 </span>                :        *
<span class="lineNum">     487 </span>                :        *  do_tolower() is a hook for a derived facet to change the behavior of
<span class="lineNum">     488 </span>                :        *  lowercasing.  do_tolower() must always return the same result for
<span class="lineNum">     489 </span>                :        *  the same input.
<span class="lineNum">     490 </span>                :        *
<span class="lineNum">     491 </span>                :        *  @param lo  Pointer to start of range.
<span class="lineNum">     492 </span>                :        *  @param hi  Pointer to end of range.
<span class="lineNum">     493 </span>                :        *  @return  @a hi.
<span class="lineNum">     494 </span>                :       */
<span class="lineNum">     495 </span>                :       virtual const char_type*
<span class="lineNum">     496 </span>                :       do_tolower(char_type* __lo, const char_type* __hi) const = 0;
<span class="lineNum">     497 </span>                : 
<span class="lineNum">     498 </span>                :       /**
<span class="lineNum">     499 </span>                :        *  @brief  Widen char
<span class="lineNum">     500 </span>                :        *
<span class="lineNum">     501 </span>                :        *  This virtual function converts the char to char_type using the
<span class="lineNum">     502 </span>                :        *  simplest reasonable transformation.
<span class="lineNum">     503 </span>                :        *
<span class="lineNum">     504 </span>                :        *  do_widen() is a hook for a derived facet to change the behavior of
<span class="lineNum">     505 </span>                :        *  widening.  do_widen() must always return the same result for the
<span class="lineNum">     506 </span>                :        *  same input.
<span class="lineNum">     507 </span>                :        *
<span class="lineNum">     508 </span>                :        *  Note: this is not what you want for codepage conversions.  See
<span class="lineNum">     509 </span>                :        *  codecvt for that.
<span class="lineNum">     510 </span>                :        *
<span class="lineNum">     511 </span>                :        *  @param c  The char to convert.
<span class="lineNum">     512 </span>                :        *  @return  The converted char_type
<span class="lineNum">     513 </span>                :       */
<span class="lineNum">     514 </span>                :       virtual char_type
<span class="lineNum">     515 </span>                :       do_widen(char) const = 0;
<span class="lineNum">     516 </span>                : 
<span class="lineNum">     517 </span>                :       /**
<span class="lineNum">     518 </span>                :        *  @brief  Widen char array
<span class="lineNum">     519 </span>                :        *
<span class="lineNum">     520 </span>                :        *  This function converts each char in the input to char_type using the
<span class="lineNum">     521 </span>                :        *  simplest reasonable transformation.
<span class="lineNum">     522 </span>                :        *
<span class="lineNum">     523 </span>                :        *  do_widen() is a hook for a derived facet to change the behavior of
<span class="lineNum">     524 </span>                :        *  widening.  do_widen() must always return the same result for the
<span class="lineNum">     525 </span>                :        *  same input.
<span class="lineNum">     526 </span>                :        *
<span class="lineNum">     527 </span>                :        *  Note: this is not what you want for codepage conversions.  See
<span class="lineNum">     528 </span>                :        *  codecvt for that.
<span class="lineNum">     529 </span>                :        *
<span class="lineNum">     530 </span>                :        *  @param lo  Pointer to start range.
<span class="lineNum">     531 </span>                :        *  @param hi  Pointer to end of range.
<span class="lineNum">     532 </span>                :        *  @param to  Pointer to the destination array.
<span class="lineNum">     533 </span>                :        *  @return  @a hi.
<span class="lineNum">     534 </span>                :       */
<span class="lineNum">     535 </span>                :       virtual const char*
<span class="lineNum">     536 </span>                :       do_widen(const char* __lo, const char* __hi,
<span class="lineNum">     537 </span>                :                char_type* __dest) const = 0;
<span class="lineNum">     538 </span>                : 
<span class="lineNum">     539 </span>                :       /**
<span class="lineNum">     540 </span>                :        *  @brief  Narrow char_type to char
<span class="lineNum">     541 </span>                :        *
<span class="lineNum">     542 </span>                :        *  This virtual function converts the argument to char using the
<span class="lineNum">     543 </span>                :        *  simplest reasonable transformation.  If the conversion fails, dfault
<span class="lineNum">     544 </span>                :        *  is returned instead.
<span class="lineNum">     545 </span>                :        *
<span class="lineNum">     546 </span>                :        *  do_narrow() is a hook for a derived facet to change the behavior of
<span class="lineNum">     547 </span>                :        *  narrowing.  do_narrow() must always return the same result for the
<span class="lineNum">     548 </span>                :        *  same input.
<span class="lineNum">     549 </span>                :        *
<span class="lineNum">     550 </span>                :        *  Note: this is not what you want for codepage conversions.  See
<span class="lineNum">     551 </span>                :        *  codecvt for that.
<span class="lineNum">     552 </span>                :        *
<span class="lineNum">     553 </span>                :        *  @param c  The char_type to convert.
<span class="lineNum">     554 </span>                :        *  @param dfault  Char to return if conversion fails.
<span class="lineNum">     555 </span>                :        *  @return  The converted char.
<span class="lineNum">     556 </span>                :       */
<span class="lineNum">     557 </span>                :       virtual char
<span class="lineNum">     558 </span>                :       do_narrow(char_type, char __dfault) const = 0;
<span class="lineNum">     559 </span>                : 
<span class="lineNum">     560 </span>                :       /**
<span class="lineNum">     561 </span>                :        *  @brief  Narrow char_type array to char
<span class="lineNum">     562 </span>                :        *
<span class="lineNum">     563 </span>                :        *  This virtual function converts each char_type in the range [lo,hi) to
<span class="lineNum">     564 </span>                :        *  char using the simplest reasonable transformation and writes the
<span class="lineNum">     565 </span>                :        *  results to the destination array.  For any element in the input that
<span class="lineNum">     566 </span>                :        *  cannot be converted, @a dfault is used instead.
<span class="lineNum">     567 </span>                :        *
<span class="lineNum">     568 </span>                :        *  do_narrow() is a hook for a derived facet to change the behavior of
<span class="lineNum">     569 </span>                :        *  narrowing.  do_narrow() must always return the same result for the
<span class="lineNum">     570 </span>                :        *  same input.
<span class="lineNum">     571 </span>                :        *
<span class="lineNum">     572 </span>                :        *  Note: this is not what you want for codepage conversions.  See
<span class="lineNum">     573 </span>                :        *  codecvt for that.
<span class="lineNum">     574 </span>                :        *
<span class="lineNum">     575 </span>                :        *  @param lo  Pointer to start of range.
<span class="lineNum">     576 </span>                :        *  @param hi  Pointer to end of range.
<span class="lineNum">     577 </span>                :        *  @param dfault  Char to use if conversion fails.
<span class="lineNum">     578 </span>                :        *  @param to  Pointer to the destination array.
<span class="lineNum">     579 </span>                :        *  @return  @a hi.
<span class="lineNum">     580 </span>                :       */
<span class="lineNum">     581 </span>                :       virtual const char_type*
<span class="lineNum">     582 </span>                :       do_narrow(const char_type* __lo, const char_type* __hi,
<span class="lineNum">     583 </span>                :                 char __dfault, char* __dest) const = 0;
<span class="lineNum">     584 </span>                :     };
<span class="lineNum">     585 </span>                : 
<span class="lineNum">     586 </span>                :   // NB: Generic, mostly useless implementation.
<span class="lineNum">     587 </span>                :   /**
<span class="lineNum">     588 </span>                :    *  @brief  Template ctype facet
<span class="lineNum">     589 </span>                :    *
<span class="lineNum">     590 </span>                :    *  This template class defines classification and conversion functions for
<span class="lineNum">     591 </span>                :    *  character sets.  It wraps &lt;cctype&gt; functionality.  Ctype gets used by
<span class="lineNum">     592 </span>                :    *  streams for many I/O operations.
<span class="lineNum">     593 </span>                :    *
<span class="lineNum">     594 </span>                :    *  This template provides the protected virtual functions the developer
<span class="lineNum">     595 </span>                :    *  will have to replace in a derived class or specialization to make a
<span class="lineNum">     596 </span>                :    *  working facet.  The public functions that access them are defined in
<span class="lineNum">     597 </span>                :    *  __ctype_abstract_base, to allow for implementation flexibility.  See
<span class="lineNum">     598 </span>                :    *  ctype&lt;wchar_t&gt; for an example.  The functions are documented in
<span class="lineNum">     599 </span>                :    *  __ctype_abstract_base.
<span class="lineNum">     600 </span>                :    *
<span class="lineNum">     601 </span>                :    *  Note: implementations are provided for all the protected virtual
<span class="lineNum">     602 </span>                :    *  functions, but will likely not be useful.
<span class="lineNum">     603 </span>                :   */
<span class="lineNum">     604 </span>                :   template&lt;typename _CharT&gt;
<span class="lineNum">     605 </span>                :     class ctype : public __ctype_abstract_base&lt;_CharT&gt;
<span class="lineNum">     606 </span>                :     {
<span class="lineNum">     607 </span>                :     public:
<span class="lineNum">     608 </span>                :       // Types:
<span class="lineNum">     609 </span>                :       typedef _CharT                    char_type;
<span class="lineNum">     610 </span>                :       typedef typename __ctype_abstract_base&lt;_CharT&gt;::mask mask;
<span class="lineNum">     611 </span>                : 
<span class="lineNum">     612 </span>                :       /// The facet id for ctype&lt;char_type&gt;
<span class="lineNum">     613 </span>                :       static locale::id                 id;
<span class="lineNum">     614 </span>                : 
<span class="lineNum">     615 </span>                :       explicit
<span class="lineNum">     616 </span>                :       ctype(size_t __refs = 0) : __ctype_abstract_base&lt;_CharT&gt;(__refs) { }
<span class="lineNum">     617 </span>                : 
<span class="lineNum">     618 </span>                :    protected:
<span class="lineNum">     619 </span>                :       virtual
<span class="lineNum">     620 </span>                :       ~ctype();
<span class="lineNum">     621 </span>                : 
<span class="lineNum">     622 </span>                :       virtual bool
<span class="lineNum">     623 </span>                :       do_is(mask __m, char_type __c) const;
<span class="lineNum">     624 </span>                : 
<span class="lineNum">     625 </span>                :       virtual const char_type*
<span class="lineNum">     626 </span>                :       do_is(const char_type* __lo, const char_type* __hi, mask* __vec) const;
<span class="lineNum">     627 </span>                : 
<span class="lineNum">     628 </span>                :       virtual const char_type*
<span class="lineNum">     629 </span>                :       do_scan_is(mask __m, const char_type* __lo, const char_type* __hi) const;
<span class="lineNum">     630 </span>                : 
<span class="lineNum">     631 </span>                :       virtual const char_type*
<span class="lineNum">     632 </span>                :       do_scan_not(mask __m, const char_type* __lo,
<span class="lineNum">     633 </span>                :                   const char_type* __hi) const;
<span class="lineNum">     634 </span>                : 
<span class="lineNum">     635 </span>                :       virtual char_type
<span class="lineNum">     636 </span>                :       do_toupper(char_type __c) const;
<span class="lineNum">     637 </span>                : 
<span class="lineNum">     638 </span>                :       virtual const char_type*
<span class="lineNum">     639 </span>                :       do_toupper(char_type* __lo, const char_type* __hi) const;
<span class="lineNum">     640 </span>                : 
<span class="lineNum">     641 </span>                :       virtual char_type
<span class="lineNum">     642 </span>                :       do_tolower(char_type __c) const;
<span class="lineNum">     643 </span>                : 
<span class="lineNum">     644 </span>                :       virtual const char_type*
<span class="lineNum">     645 </span>                :       do_tolower(char_type* __lo, const char_type* __hi) const;
<span class="lineNum">     646 </span>                : 
<span class="lineNum">     647 </span>                :       virtual char_type
<span class="lineNum">     648 </span>                :       do_widen(char __c) const;
<span class="lineNum">     649 </span>                : 
<span class="lineNum">     650 </span>                :       virtual const char*
<span class="lineNum">     651 </span>                :       do_widen(const char* __lo, const char* __hi, char_type* __dest) const;
<span class="lineNum">     652 </span>                : 
<span class="lineNum">     653 </span>                :       virtual char
<span class="lineNum">     654 </span>                :       do_narrow(char_type, char __dfault) const;
<span class="lineNum">     655 </span>                : 
<span class="lineNum">     656 </span>                :       virtual const char_type*
<span class="lineNum">     657 </span>                :       do_narrow(const char_type* __lo, const char_type* __hi,
<span class="lineNum">     658 </span>                :                 char __dfault, char* __dest) const;
<span class="lineNum">     659 </span>                :     };
<span class="lineNum">     660 </span>                : 
<span class="lineNum">     661 </span>                :   template&lt;typename _CharT&gt;
<span class="lineNum">     662 </span>                :     locale::id ctype&lt;_CharT&gt;::id;
<span class="lineNum">     663 </span>                : 
<span class="lineNum">     664 </span>                :   // 22.2.1.3  ctype&lt;char&gt; specialization.
<span class="lineNum">     665 </span>                :   /**
<span class="lineNum">     666 </span>                :    *  @brief  The ctype&lt;char&gt; specialization.
<span class="lineNum">     667 </span>                :    *
<span class="lineNum">     668 </span>                :    *  This class defines classification and conversion functions for
<span class="lineNum">     669 </span>                :    *  the char type.  It gets used by char streams for many I/O
<span class="lineNum">     670 </span>                :    *  operations.  The char specialization provides a number of
<span class="lineNum">     671 </span>                :    *  optimizations as well.
<span class="lineNum">     672 </span>                :   */
<span class="lineNum">     673 </span>                :   template&lt;&gt;
<span class="lineNum">     674 </span>                :     class ctype&lt;char&gt; : public locale::facet, public ctype_base
<span class="lineNum">     675 </span>                :     {
<span class="lineNum">     676 </span>                :     public:
<span class="lineNum">     677 </span>                :       // Types:
<span class="lineNum">     678 </span>                :       /// Typedef for the template parameter char.
<span class="lineNum">     679 </span>                :       typedef char              char_type;
<span class="lineNum">     680 </span>                : 
<span class="lineNum">     681 </span>                :     protected:
<span class="lineNum">     682 </span>                :       // Data Members:
<span class="lineNum">     683 </span>                :       __c_locale                _M_c_locale_ctype;
<span class="lineNum">     684 </span>                :       bool                      _M_del;
<span class="lineNum">     685 </span>                :       __to_type                 _M_toupper;
<span class="lineNum">     686 </span>                :       __to_type                 _M_tolower;
<span class="lineNum">     687 </span>                :       const mask*               _M_table;
<span class="lineNum">     688 </span>                :       mutable char              _M_widen_ok;
<span class="lineNum">     689 </span>                :       mutable char              _M_widen[1 + static_cast&lt;unsigned char&gt;(-1)];
<span class="lineNum">     690 </span>                :       mutable char              _M_narrow[1 + static_cast&lt;unsigned char&gt;(-1)];
<span class="lineNum">     691 </span>                :       mutable char              _M_narrow_ok;   // 0 uninitialized, 1 init,
<span class="lineNum">     692 </span>                :                                                 // 2 memcpy can't be used
<span class="lineNum">     693 </span>                : 
<span class="lineNum">     694 </span>                :     public:
<span class="lineNum">     695 </span>                :       /// The facet id for ctype&lt;char&gt;
<span class="lineNum">     696 </span>                :       static locale::id        id;
<span class="lineNum">     697 </span>                :       /// The size of the mask table.  It is SCHAR_MAX + 1.
<span class="lineNum">     698 </span>                :       static const size_t      table_size = 1 + static_cast&lt;unsigned char&gt;(-1);
<span class="lineNum">     699 </span>                : 
<span class="lineNum">     700 </span>                :       /**
<span class="lineNum">     701 </span>                :        *  @brief  Constructor performs initialization.
<span class="lineNum">     702 </span>                :        *
<span class="lineNum">     703 </span>                :        *  This is the constructor provided by the standard.
<span class="lineNum">     704 </span>                :        *
<span class="lineNum">     705 </span>                :        *  @param table If non-zero, table is used as the per-char mask.
<span class="lineNum">     706 </span>                :        *               Else classic_table() is used.
<span class="lineNum">     707 </span>                :        *  @param del   If true, passes ownership of table to this facet.
<span class="lineNum">     708 </span>                :        *  @param refs  Passed to the base facet class.
<span class="lineNum">     709 </span>                :       */
<span class="lineNum">     710 </span>                :       explicit
<span class="lineNum">     711 </span>                :       ctype(const mask* __table = 0, bool __del = false, size_t __refs = 0);
<span class="lineNum">     712 </span>                : 
<span class="lineNum">     713 </span>                :       /**
<span class="lineNum">     714 </span>                :        *  @brief  Constructor performs static initialization.
<span class="lineNum">     715 </span>                :        *
<span class="lineNum">     716 </span>                :        *  This constructor is used to construct the initial C locale facet.
<span class="lineNum">     717 </span>                :        *
<span class="lineNum">     718 </span>                :        *  @param cloc  Handle to C locale data.
<span class="lineNum">     719 </span>                :        *  @param table If non-zero, table is used as the per-char mask.
<span class="lineNum">     720 </span>                :        *  @param del   If true, passes ownership of table to this facet.
<span class="lineNum">     721 </span>                :        *  @param refs  Passed to the base facet class.
<span class="lineNum">     722 </span>                :       */
<span class="lineNum">     723 </span>                :       explicit
<span class="lineNum">     724 </span>                :       ctype(__c_locale __cloc, const mask* __table = 0, bool __del = false,
<span class="lineNum">     725 </span>                :             size_t __refs = 0);
<span class="lineNum">     726 </span>                : 
<span class="lineNum">     727 </span>                :       /**
<span class="lineNum">     728 </span>                :        *  @brief  Test char classification.
<span class="lineNum">     729 </span>                :        *
<span class="lineNum">     730 </span>                :        *  This function compares the mask table[c] to @a m.
<span class="lineNum">     731 </span>                :        *
<span class="lineNum">     732 </span>                :        *  @param c  The char to compare the mask of.
<span class="lineNum">     733 </span>                :        *  @param m  The mask to compare against.
<span class="lineNum">     734 </span>                :        *  @return  True if m &amp; table[c] is true, false otherwise.
<span class="lineNum">     735 </span>                :       */
<span class="lineNum">     736 </span>                :       inline bool
<span class="lineNum">     737 </span>                :       is(mask __m, char __c) const;
<span class="lineNum">     738 </span>                : 
<span class="lineNum">     739 </span>                :       /**
<span class="lineNum">     740 </span>                :        *  @brief  Return a mask array.
<span class="lineNum">     741 </span>                :        *
<span class="lineNum">     742 </span>                :        *  This function finds the mask for each char in the range [lo, hi) and
<span class="lineNum">     743 </span>                :        *  successively writes it to vec.  vec must have as many elements as
<span class="lineNum">     744 </span>                :        *  the char array.
<span class="lineNum">     745 </span>                :        *
<span class="lineNum">     746 </span>                :        *  @param lo  Pointer to start of range.
<span class="lineNum">     747 </span>                :        *  @param hi  Pointer to end of range.
<span class="lineNum">     748 </span>                :        *  @param vec  Pointer to an array of mask storage.
<span class="lineNum">     749 </span>                :        *  @return  @a hi.
<span class="lineNum">     750 </span>                :       */
<span class="lineNum">     751 </span>                :       inline const char*
<span class="lineNum">     752 </span>                :       is(const char* __lo, const char* __hi, mask* __vec) const;
<span class="lineNum">     753 </span>                : 
<span class="lineNum">     754 </span>                :       /**
<span class="lineNum">     755 </span>                :        *  @brief  Find char matching a mask
<span class="lineNum">     756 </span>                :        *
<span class="lineNum">     757 </span>                :        *  This function searches for and returns the first char in [lo,hi) for
<span class="lineNum">     758 </span>                :        *  which is(m,char) is true.
<span class="lineNum">     759 </span>                :        *
<span class="lineNum">     760 </span>                :        *  @param m  The mask to compare against.
<span class="lineNum">     761 </span>                :        *  @param lo  Pointer to start of range.
<span class="lineNum">     762 </span>                :        *  @param hi  Pointer to end of range.
<span class="lineNum">     763 </span>                :        *  @return  Pointer to a matching char if found, else @a hi.
<span class="lineNum">     764 </span>                :       */
<span class="lineNum">     765 </span>                :       inline const char*
<span class="lineNum">     766 </span>                :       scan_is(mask __m, const char* __lo, const char* __hi) const;
<span class="lineNum">     767 </span>                : 
<span class="lineNum">     768 </span>                :       /**
<span class="lineNum">     769 </span>                :        *  @brief  Find char not matching a mask
<span class="lineNum">     770 </span>                :        *
<span class="lineNum">     771 </span>                :        *  This function searches for and returns a pointer to the first char
<span class="lineNum">     772 </span>                :        *  in [lo,hi) for which is(m,char) is false.
<span class="lineNum">     773 </span>                :        *
<span class="lineNum">     774 </span>                :        *  @param m  The mask to compare against.
<span class="lineNum">     775 </span>                :        *  @param lo  Pointer to start of range.
<span class="lineNum">     776 </span>                :        *  @param hi  Pointer to end of range.
<span class="lineNum">     777 </span>                :        *  @return  Pointer to a non-matching char if found, else @a hi.
<span class="lineNum">     778 </span>                :       */
<span class="lineNum">     779 </span>                :       inline const char*
<span class="lineNum">     780 </span>                :       scan_not(mask __m, const char* __lo, const char* __hi) const;
<span class="lineNum">     781 </span>                : 
<span class="lineNum">     782 </span>                :       /**
<span class="lineNum">     783 </span>                :        *  @brief  Convert to uppercase.
<span class="lineNum">     784 </span>                :        *
<span class="lineNum">     785 </span>                :        *  This function converts the char argument to uppercase if possible.
<span class="lineNum">     786 </span>                :        *  If not possible (for example, '2'), returns the argument.
<span class="lineNum">     787 </span>                :        *
<span class="lineNum">     788 </span>                :        *  toupper() acts as if it returns ctype&lt;char&gt;::do_toupper(c).
<span class="lineNum">     789 </span>                :        *  do_toupper() must always return the same result for the same input.
<span class="lineNum">     790 </span>                :        *
<span class="lineNum">     791 </span>                :        *  @param c  The char to convert.
<span class="lineNum">     792 </span>                :        *  @return  The uppercase char if convertible, else @a c.
<span class="lineNum">     793 </span>                :       */
<span class="lineNum">     794 </span>                :       char_type
<span class="lineNum">     795 </span>                :       toupper(char_type __c) const
<span class="lineNum">     796 </span>                :       { return this-&gt;do_toupper(__c); }
<span class="lineNum">     797 </span>                : 
<span class="lineNum">     798 </span>                :       /**
<span class="lineNum">     799 </span>                :        *  @brief  Convert array to uppercase.
<span class="lineNum">     800 </span>                :        *
<span class="lineNum">     801 </span>                :        *  This function converts each char in the range [lo,hi) to uppercase
<span class="lineNum">     802 </span>                :        *  if possible.  Other chars remain untouched.
<span class="lineNum">     803 </span>                :        *
<span class="lineNum">     804 </span>                :        *  toupper() acts as if it returns ctype&lt;char&gt;:: do_toupper(lo, hi).
<span class="lineNum">     805 </span>                :        *  do_toupper() must always return the same result for the same input.
<span class="lineNum">     806 </span>                :        *
<span class="lineNum">     807 </span>                :        *  @param lo  Pointer to first char in range.
<span class="lineNum">     808 </span>                :        *  @param hi  Pointer to end of range.
<span class="lineNum">     809 </span>                :        *  @return  @a hi.
<span class="lineNum">     810 </span>                :       */
<span class="lineNum">     811 </span>                :       const char_type*
<span class="lineNum">     812 </span>                :       toupper(char_type *__lo, const char_type* __hi) const
<span class="lineNum">     813 </span>                :       { return this-&gt;do_toupper(__lo, __hi); }
<span class="lineNum">     814 </span>                : 
<span class="lineNum">     815 </span>                :       /**
<span class="lineNum">     816 </span>                :        *  @brief  Convert to lowercase.
<span class="lineNum">     817 </span>                :        *
<span class="lineNum">     818 </span>                :        *  This function converts the char argument to lowercase if possible.
<span class="lineNum">     819 </span>                :        *  If not possible (for example, '2'), returns the argument.
<span class="lineNum">     820 </span>                :        *
<span class="lineNum">     821 </span>                :        *  tolower() acts as if it returns ctype&lt;char&gt;::do_tolower(c).
<span class="lineNum">     822 </span>                :        *  do_tolower() must always return the same result for the same input.
<span class="lineNum">     823 </span>                :        *
<span class="lineNum">     824 </span>                :        *  @param c  The char to convert.
<span class="lineNum">     825 </span>                :        *  @return  The lowercase char if convertible, else @a c.
<span class="lineNum">     826 </span>                :       */
<span class="lineNum">     827 </span>                :       char_type
<span class="lineNum">     828 </span>                :       tolower(char_type __c) const
<span class="lineNum">     829 </span>                :       { return this-&gt;do_tolower(__c); }
<span class="lineNum">     830 </span>                : 
<span class="lineNum">     831 </span>                :       /**
<span class="lineNum">     832 </span>                :        *  @brief  Convert array to lowercase.
<span class="lineNum">     833 </span>                :        *
<span class="lineNum">     834 </span>                :        *  This function converts each char in the range [lo,hi) to lowercase
<span class="lineNum">     835 </span>                :        *  if possible.  Other chars remain untouched.
<span class="lineNum">     836 </span>                :        *
<span class="lineNum">     837 </span>                :        *  tolower() acts as if it returns ctype&lt;char&gt;:: do_tolower(lo, hi).
<span class="lineNum">     838 </span>                :        *  do_tolower() must always return the same result for the same input.
<span class="lineNum">     839 </span>                :        *
<span class="lineNum">     840 </span>                :        *  @param lo  Pointer to first char in range.
<span class="lineNum">     841 </span>                :        *  @param hi  Pointer to end of range.
<span class="lineNum">     842 </span>                :        *  @return  @a hi.
<span class="lineNum">     843 </span>                :       */
<span class="lineNum">     844 </span>                :       const char_type*
<span class="lineNum">     845 </span>                :       tolower(char_type* __lo, const char_type* __hi) const
<span class="lineNum">     846 </span>                :       { return this-&gt;do_tolower(__lo, __hi); }
<span class="lineNum">     847 </span>                : 
<span class="lineNum">     848 </span>                :       /**
<span class="lineNum">     849 </span>                :        *  @brief  Widen char
<span class="lineNum">     850 </span>                :        *
<span class="lineNum">     851 </span>                :        *  This function converts the char to char_type using the simplest
<span class="lineNum">     852 </span>                :        *  reasonable transformation.  For an underived ctype&lt;char&gt; facet, the
<span class="lineNum">     853 </span>                :        *  argument will be returned unchanged.
<span class="lineNum">     854 </span>                :        *
<span class="lineNum">     855 </span>                :        *  This function works as if it returns ctype&lt;char&gt;::do_widen(c).
<span class="lineNum">     856 </span>                :        *  do_widen() must always return the same result for the same input.
<span class="lineNum">     857 </span>                :        *
<span class="lineNum">     858 </span>                :        *  Note: this is not what you want for codepage conversions.  See
<span class="lineNum">     859 </span>                :        *  codecvt for that.
<span class="lineNum">     860 </span>                :        *
<span class="lineNum">     861 </span>                :        *  @param c  The char to convert.
<span class="lineNum">     862 </span>                :        *  @return  The converted character.
<span class="lineNum">     863 </span>                :       */
<span class="lineNum">     864 </span>                :       char_type
<span class="lineNum">     865 </span><span class="lineNoCov">              0 :       widen(char __c) const</span>
<span class="lineNum">     866 </span>                :       {
<span class="lineNum">     867 </span><span class="lineNoCov">              0 :         if (_M_widen_ok)</span>
<span class="lineNum">     868 </span><span class="lineNoCov">              0 :           return _M_widen[static_cast&lt;unsigned char&gt;(__c)];</span>
<span class="lineNum">     869 </span><span class="lineNoCov">              0 :         this-&gt;_M_widen_init();</span>
<span class="lineNum">     870 </span><span class="lineNoCov">              0 :         return this-&gt;do_widen(__c);</span>
<span class="lineNum">     871 </span>                :       }
<span class="lineNum">     872 </span>                : 
<span class="lineNum">     873 </span>                :       /**
<span class="lineNum">     874 </span>                :        *  @brief  Widen char array
<span class="lineNum">     875 </span>                :        *
<span class="lineNum">     876 </span>                :        *  This function converts each char in the input to char using the
<span class="lineNum">     877 </span>                :        *  simplest reasonable transformation.  For an underived ctype&lt;char&gt;
<span class="lineNum">     878 </span>                :        *  facet, the argument will be copied unchanged.
<span class="lineNum">     879 </span>                :        *
<span class="lineNum">     880 </span>                :        *  This function works as if it returns ctype&lt;char&gt;::do_widen(c).
<span class="lineNum">     881 </span>                :        *  do_widen() must always return the same result for the same input.
<span class="lineNum">     882 </span>                :        *
<span class="lineNum">     883 </span>                :        *  Note: this is not what you want for codepage conversions.  See
<span class="lineNum">     884 </span>                :        *  codecvt for that.
<span class="lineNum">     885 </span>                :        *
<span class="lineNum">     886 </span>                :        *  @param lo  Pointer to first char in range.
<span class="lineNum">     887 </span>                :        *  @param hi  Pointer to end of range.
<span class="lineNum">     888 </span>                :        *  @param to  Pointer to the destination array.
<span class="lineNum">     889 </span>                :        *  @return  @a hi.
<span class="lineNum">     890 </span>                :       */
<span class="lineNum">     891 </span>                :       const char*
<span class="lineNum">     892 </span>                :       widen(const char* __lo, const char* __hi, char_type* __to) const
<span class="lineNum">     893 </span>                :       {
<span class="lineNum">     894 </span>                :         if (_M_widen_ok == 1)
<span class="lineNum">     895 </span>                :           {
<span class="lineNum">     896 </span>                :             __builtin_memcpy(__to, __lo, __hi - __lo);
<span class="lineNum">     897 </span>                :             return __hi;
<span class="lineNum">     898 </span>                :           }
<span class="lineNum">     899 </span>                :         if (!_M_widen_ok)
<span class="lineNum">     900 </span>                :           _M_widen_init();
<span class="lineNum">     901 </span>                :         return this-&gt;do_widen(__lo, __hi, __to);
<span class="lineNum">     902 </span>                :       }
<span class="lineNum">     903 </span>                : 
<span class="lineNum">     904 </span>                :       /**
<span class="lineNum">     905 </span>                :        *  @brief  Narrow char
<span class="lineNum">     906 </span>                :        *
<span class="lineNum">     907 </span>                :        *  This function converts the char to char using the simplest
<span class="lineNum">     908 </span>                :        *  reasonable transformation.  If the conversion fails, dfault is
<span class="lineNum">     909 </span>                :        *  returned instead.  For an underived ctype&lt;char&gt; facet, @a c
<span class="lineNum">     910 </span>                :        *  will be returned unchanged.
<span class="lineNum">     911 </span>                :        *
<span class="lineNum">     912 </span>                :        *  This function works as if it returns ctype&lt;char&gt;::do_narrow(c).
<span class="lineNum">     913 </span>                :        *  do_narrow() must always return the same result for the same input.
<span class="lineNum">     914 </span>                :        *
<span class="lineNum">     915 </span>                :        *  Note: this is not what you want for codepage conversions.  See
<span class="lineNum">     916 </span>                :        *  codecvt for that.
<span class="lineNum">     917 </span>                :        *
<span class="lineNum">     918 </span>                :        *  @param c  The char to convert.
<span class="lineNum">     919 </span>                :        *  @param dfault  Char to return if conversion fails.
<span class="lineNum">     920 </span>                :        *  @return  The converted character.
<span class="lineNum">     921 </span>                :       */
<span class="lineNum">     922 </span>                :       char
<span class="lineNum">     923 </span>                :       narrow(char_type __c, char __dfault) const
<span class="lineNum">     924 </span>                :       {
<span class="lineNum">     925 </span>                :         if (_M_narrow[static_cast&lt;unsigned char&gt;(__c)])
<span class="lineNum">     926 </span>                :           return _M_narrow[static_cast&lt;unsigned char&gt;(__c)];
<span class="lineNum">     927 </span>                :         const char __t = do_narrow(__c, __dfault);
<span class="lineNum">     928 </span>                :         if (__t != __dfault)
<span class="lineNum">     929 </span>                :           _M_narrow[static_cast&lt;unsigned char&gt;(__c)] = __t;
<span class="lineNum">     930 </span>                :         return __t;
<span class="lineNum">     931 </span>                :       }
<span class="lineNum">     932 </span>                : 
<span class="lineNum">     933 </span>                :       /**
<span class="lineNum">     934 </span>                :        *  @brief  Narrow char array
<span class="lineNum">     935 </span>                :        *
<span class="lineNum">     936 </span>                :        *  This function converts each char in the input to char using the
<span class="lineNum">     937 </span>                :        *  simplest reasonable transformation and writes the results to the
<span class="lineNum">     938 </span>                :        *  destination array.  For any char in the input that cannot be
<span class="lineNum">     939 </span>                :        *  converted, @a dfault is used instead.  For an underived ctype&lt;char&gt;
<span class="lineNum">     940 </span>                :        *  facet, the argument will be copied unchanged.
<span class="lineNum">     941 </span>                :        *
<span class="lineNum">     942 </span>                :        *  This function works as if it returns ctype&lt;char&gt;::do_narrow(lo, hi,
<span class="lineNum">     943 </span>                :        *  dfault, to).  do_narrow() must always return the same result for the
<span class="lineNum">     944 </span>                :        *  same input.
<span class="lineNum">     945 </span>                :        *
<span class="lineNum">     946 </span>                :        *  Note: this is not what you want for codepage conversions.  See
<span class="lineNum">     947 </span>                :        *  codecvt for that.
<span class="lineNum">     948 </span>                :        *
<span class="lineNum">     949 </span>                :        *  @param lo  Pointer to start of range.
<span class="lineNum">     950 </span>                :        *  @param hi  Pointer to end of range.
<span class="lineNum">     951 </span>                :        *  @param dfault  Char to use if conversion fails.
<span class="lineNum">     952 </span>                :        *  @param to  Pointer to the destination array.
<span class="lineNum">     953 </span>                :        *  @return  @a hi.
<span class="lineNum">     954 </span>                :       */
<span class="lineNum">     955 </span>                :       const char_type*
<span class="lineNum">     956 </span>                :       narrow(const char_type* __lo, const char_type* __hi,
<span class="lineNum">     957 </span>                :              char __dfault, char *__to) const
<span class="lineNum">     958 </span>                :       {
<span class="lineNum">     959 </span>                :         if (__builtin_expect(_M_narrow_ok == 1, true))
<span class="lineNum">     960 </span>                :           {
<span class="lineNum">     961 </span>                :             __builtin_memcpy(__to, __lo, __hi - __lo);
<span class="lineNum">     962 </span>                :             return __hi;
<span class="lineNum">     963 </span>                :           }
<span class="lineNum">     964 </span>                :         if (!_M_narrow_ok)
<span class="lineNum">     965 </span>                :           _M_narrow_init();
<span class="lineNum">     966 </span>                :         return this-&gt;do_narrow(__lo, __hi, __dfault, __to);
<span class="lineNum">     967 </span>                :       }
<span class="lineNum">     968 </span>                : 
<span class="lineNum">     969 </span>                :       // _GLIBCXX_RESOLVE_LIB_DEFECTS
<span class="lineNum">     970 </span>                :       // DR 695. ctype&lt;char&gt;::classic_table() not accessible.
<span class="lineNum">     971 </span>                :       /// Returns a pointer to the mask table provided to the constructor, or
<span class="lineNum">     972 </span>                :       /// the default from classic_table() if none was provided.
<span class="lineNum">     973 </span>                :       const mask*
<span class="lineNum">     974 </span>                :       table() const throw()
<span class="lineNum">     975 </span>                :       { return _M_table; }
<span class="lineNum">     976 </span>                : 
<span class="lineNum">     977 </span>                :       /// Returns a pointer to the C locale mask table.
<span class="lineNum">     978 </span>                :       static const mask*
<span class="lineNum">     979 </span>                :       classic_table() throw();
<span class="lineNum">     980 </span>                :     protected:
<span class="lineNum">     981 </span>                : 
<span class="lineNum">     982 </span>                :       /**
<span class="lineNum">     983 </span>                :        *  @brief  Destructor.
<span class="lineNum">     984 </span>                :        *
<span class="lineNum">     985 </span>                :        *  This function deletes table() if @a del was true in the
<span class="lineNum">     986 </span>                :        *  constructor.
<span class="lineNum">     987 </span>                :       */
<span class="lineNum">     988 </span>                :       virtual
<span class="lineNum">     989 </span>                :       ~ctype();
<span class="lineNum">     990 </span>                : 
<span class="lineNum">     991 </span>                :       /**
<span class="lineNum">     992 </span>                :        *  @brief  Convert to uppercase.
<span class="lineNum">     993 </span>                :        *
<span class="lineNum">     994 </span>                :        *  This virtual function converts the char argument to uppercase if
<span class="lineNum">     995 </span>                :        *  possible.  If not possible (for example, '2'), returns the argument.
<span class="lineNum">     996 </span>                :        *
<span class="lineNum">     997 </span>                :        *  do_toupper() is a hook for a derived facet to change the behavior of
<span class="lineNum">     998 </span>                :        *  uppercasing.  do_toupper() must always return the same result for
<span class="lineNum">     999 </span>                :        *  the same input.
<span class="lineNum">    1000 </span>                :        *
<span class="lineNum">    1001 </span>                :        *  @param c  The char to convert.
<span class="lineNum">    1002 </span>                :        *  @return  The uppercase char if convertible, else @a c.
<span class="lineNum">    1003 </span>                :       */
<span class="lineNum">    1004 </span>                :       virtual char_type
<span class="lineNum">    1005 </span>                :       do_toupper(char_type) const;
<span class="lineNum">    1006 </span>                : 
<span class="lineNum">    1007 </span>                :       /**
<span class="lineNum">    1008 </span>                :        *  @brief  Convert array to uppercase.
<span class="lineNum">    1009 </span>                :        *
<span class="lineNum">    1010 </span>                :        *  This virtual function converts each char in the range [lo,hi) to
<span class="lineNum">    1011 </span>                :        *  uppercase if possible.  Other chars remain untouched.
<span class="lineNum">    1012 </span>                :        *
<span class="lineNum">    1013 </span>                :        *  do_toupper() is a hook for a derived facet to change the behavior of
<span class="lineNum">    1014 </span>                :        *  uppercasing.  do_toupper() must always return the same result for
<span class="lineNum">    1015 </span>                :        *  the same input.
<span class="lineNum">    1016 </span>                :        *
<span class="lineNum">    1017 </span>                :        *  @param lo  Pointer to start of range.
<span class="lineNum">    1018 </span>                :        *  @param hi  Pointer to end of range.
<span class="lineNum">    1019 </span>                :        *  @return  @a hi.
<span class="lineNum">    1020 </span>                :       */
<span class="lineNum">    1021 </span>                :       virtual const char_type*
<span class="lineNum">    1022 </span>                :       do_toupper(char_type* __lo, const char_type* __hi) const;
<span class="lineNum">    1023 </span>                : 
<span class="lineNum">    1024 </span>                :       /**
<span class="lineNum">    1025 </span>                :        *  @brief  Convert to lowercase.
<span class="lineNum">    1026 </span>                :        *
<span class="lineNum">    1027 </span>                :        *  This virtual function converts the char argument to lowercase if
<span class="lineNum">    1028 </span>                :        *  possible.  If not possible (for example, '2'), returns the argument.
<span class="lineNum">    1029 </span>                :        *
<span class="lineNum">    1030 </span>                :        *  do_tolower() is a hook for a derived facet to change the behavior of
<span class="lineNum">    1031 </span>                :        *  lowercasing.  do_tolower() must always return the same result for
<span class="lineNum">    1032 </span>                :        *  the same input.
<span class="lineNum">    1033 </span>                :        *
<span class="lineNum">    1034 </span>                :        *  @param c  The char to convert.
<span class="lineNum">    1035 </span>                :        *  @return  The lowercase char if convertible, else @a c.
<span class="lineNum">    1036 </span>                :       */
<span class="lineNum">    1037 </span>                :       virtual char_type
<span class="lineNum">    1038 </span>                :       do_tolower(char_type) const;
<span class="lineNum">    1039 </span>                : 
<span class="lineNum">    1040 </span>                :       /**
<span class="lineNum">    1041 </span>                :        *  @brief  Convert array to lowercase.
<span class="lineNum">    1042 </span>                :        *
<span class="lineNum">    1043 </span>                :        *  This virtual function converts each char in the range [lo,hi) to
<span class="lineNum">    1044 </span>                :        *  lowercase if possible.  Other chars remain untouched.
<span class="lineNum">    1045 </span>                :        *
<span class="lineNum">    1046 </span>                :        *  do_tolower() is a hook for a derived facet to change the behavior of
<span class="lineNum">    1047 </span>                :        *  lowercasing.  do_tolower() must always return the same result for
<span class="lineNum">    1048 </span>                :        *  the same input.
<span class="lineNum">    1049 </span>                :        *
<span class="lineNum">    1050 </span>                :        *  @param lo  Pointer to first char in range.
<span class="lineNum">    1051 </span>                :        *  @param hi  Pointer to end of range.
<span class="lineNum">    1052 </span>                :        *  @return  @a hi.
<span class="lineNum">    1053 </span>                :       */
<span class="lineNum">    1054 </span>                :       virtual const char_type*
<span class="lineNum">    1055 </span>                :       do_tolower(char_type* __lo, const char_type* __hi) const;
<span class="lineNum">    1056 </span>                : 
<span class="lineNum">    1057 </span>                :       /**
<span class="lineNum">    1058 </span>                :        *  @brief  Widen char
<span class="lineNum">    1059 </span>                :        *
<span class="lineNum">    1060 </span>                :        *  This virtual function converts the char to char using the simplest
<span class="lineNum">    1061 </span>                :        *  reasonable transformation.  For an underived ctype&lt;char&gt; facet, the
<span class="lineNum">    1062 </span>                :        *  argument will be returned unchanged.
<span class="lineNum">    1063 </span>                :        *
<span class="lineNum">    1064 </span>                :        *  do_widen() is a hook for a derived facet to change the behavior of
<span class="lineNum">    1065 </span>                :        *  widening.  do_widen() must always return the same result for the
<span class="lineNum">    1066 </span>                :        *  same input.
<span class="lineNum">    1067 </span>                :        *
<span class="lineNum">    1068 </span>                :        *  Note: this is not what you want for codepage conversions.  See
<span class="lineNum">    1069 </span>                :        *  codecvt for that.
<span class="lineNum">    1070 </span>                :        *
<span class="lineNum">    1071 </span>                :        *  @param c  The char to convert.
<span class="lineNum">    1072 </span>                :        *  @return  The converted character.
<span class="lineNum">    1073 </span>                :       */
<span class="lineNum">    1074 </span>                :       virtual char_type
<span class="lineNum">    1075 </span>                :       do_widen(char __c) const
<span class="lineNum">    1076 </span>                :       { return __c; }
<span class="lineNum">    1077 </span>                : 
<span class="lineNum">    1078 </span>                :       /**
<span class="lineNum">    1079 </span>                :        *  @brief  Widen char array
<span class="lineNum">    1080 </span>                :        *
<span class="lineNum">    1081 </span>                :        *  This function converts each char in the range [lo,hi) to char using
<span class="lineNum">    1082 </span>                :        *  the simplest reasonable transformation.  For an underived
<span class="lineNum">    1083 </span>                :        *  ctype&lt;char&gt; facet, the argument will be copied unchanged.
<span class="lineNum">    1084 </span>                :        *
<span class="lineNum">    1085 </span>                :        *  do_widen() is a hook for a derived facet to change the behavior of
<span class="lineNum">    1086 </span>                :        *  widening.  do_widen() must always return the same result for the
<span class="lineNum">    1087 </span>                :        *  same input.
<span class="lineNum">    1088 </span>                :        *
<span class="lineNum">    1089 </span>                :        *  Note: this is not what you want for codepage conversions.  See
<span class="lineNum">    1090 </span>                :        *  codecvt for that.
<span class="lineNum">    1091 </span>                :        *
<span class="lineNum">    1092 </span>                :        *  @param lo  Pointer to start of range.
<span class="lineNum">    1093 </span>                :        *  @param hi  Pointer to end of range.
<span class="lineNum">    1094 </span>                :        *  @param to  Pointer to the destination array.
<span class="lineNum">    1095 </span>                :        *  @return  @a hi.
<span class="lineNum">    1096 </span>                :       */
<span class="lineNum">    1097 </span>                :       virtual const char*
<span class="lineNum">    1098 </span>                :       do_widen(const char* __lo, const char* __hi, char_type* __dest) const
<span class="lineNum">    1099 </span>                :       {
<span class="lineNum">    1100 </span>                :         __builtin_memcpy(__dest, __lo, __hi - __lo);
<span class="lineNum">    1101 </span>                :         return __hi;
<span class="lineNum">    1102 </span>                :       }
<span class="lineNum">    1103 </span>                : 
<span class="lineNum">    1104 </span>                :       /**
<span class="lineNum">    1105 </span>                :        *  @brief  Narrow char
<span class="lineNum">    1106 </span>                :        *
<span class="lineNum">    1107 </span>                :        *  This virtual function converts the char to char using the simplest
<span class="lineNum">    1108 </span>                :        *  reasonable transformation.  If the conversion fails, dfault is
<span class="lineNum">    1109 </span>                :        *  returned instead.  For an underived ctype&lt;char&gt; facet, @a c will be
<span class="lineNum">    1110 </span>                :        *  returned unchanged.
<span class="lineNum">    1111 </span>                :        *
<span class="lineNum">    1112 </span>                :        *  do_narrow() is a hook for a derived facet to change the behavior of
<span class="lineNum">    1113 </span>                :        *  narrowing.  do_narrow() must always return the same result for the
<span class="lineNum">    1114 </span>                :        *  same input.
<span class="lineNum">    1115 </span>                :        *
<span class="lineNum">    1116 </span>                :        *  Note: this is not what you want for codepage conversions.  See
<span class="lineNum">    1117 </span>                :        *  codecvt for that.
<span class="lineNum">    1118 </span>                :        *
<span class="lineNum">    1119 </span>                :        *  @param c  The char to convert.
<span class="lineNum">    1120 </span>                :        *  @param dfault  Char to return if conversion fails.
<span class="lineNum">    1121 </span>                :        *  @return  The converted char.
<span class="lineNum">    1122 </span>                :       */
<span class="lineNum">    1123 </span>                :       virtual char
<span class="lineNum">    1124 </span>                :       do_narrow(char_type __c, char) const
<span class="lineNum">    1125 </span>                :       { return __c; }
<span class="lineNum">    1126 </span>                : 
<span class="lineNum">    1127 </span>                :       /**
<span class="lineNum">    1128 </span>                :        *  @brief  Narrow char array to char array
<span class="lineNum">    1129 </span>                :        *
<span class="lineNum">    1130 </span>                :        *  This virtual function converts each char in the range [lo,hi) to
<span class="lineNum">    1131 </span>                :        *  char using the simplest reasonable transformation and writes the
<span class="lineNum">    1132 </span>                :        *  results to the destination array.  For any char in the input that
<span class="lineNum">    1133 </span>                :        *  cannot be converted, @a dfault is used instead.  For an underived
<span class="lineNum">    1134 </span>                :        *  ctype&lt;char&gt; facet, the argument will be copied unchanged.
<span class="lineNum">    1135 </span>                :        *
<span class="lineNum">    1136 </span>                :        *  do_narrow() is a hook for a derived facet to change the behavior of
<span class="lineNum">    1137 </span>                :        *  narrowing.  do_narrow() must always return the same result for the
<span class="lineNum">    1138 </span>                :        *  same input.
<span class="lineNum">    1139 </span>                :        *
<span class="lineNum">    1140 </span>                :        *  Note: this is not what you want for codepage conversions.  See
<span class="lineNum">    1141 </span>                :        *  codecvt for that.
<span class="lineNum">    1142 </span>                :        *
<span class="lineNum">    1143 </span>                :        *  @param lo  Pointer to start of range.
<span class="lineNum">    1144 </span>                :        *  @param hi  Pointer to end of range.
<span class="lineNum">    1145 </span>                :        *  @param dfault  Char to use if conversion fails.
<span class="lineNum">    1146 </span>                :        *  @param to  Pointer to the destination array.
<span class="lineNum">    1147 </span>                :        *  @return  @a hi.
<span class="lineNum">    1148 </span>                :       */
<span class="lineNum">    1149 </span>                :       virtual const char_type*
<span class="lineNum">    1150 </span>                :       do_narrow(const char_type* __lo, const char_type* __hi,
<span class="lineNum">    1151 </span>                :                 char, char* __dest) const
<span class="lineNum">    1152 </span>                :       {
<span class="lineNum">    1153 </span>                :         __builtin_memcpy(__dest, __lo, __hi - __lo);
<span class="lineNum">    1154 </span>                :         return __hi;
<span class="lineNum">    1155 </span>                :       }
<span class="lineNum">    1156 </span>                : 
<span class="lineNum">    1157 </span>                :     private:
<span class="lineNum">    1158 </span>                :       void _M_narrow_init() const;
<span class="lineNum">    1159 </span>                :       void _M_widen_init() const;
<span class="lineNum">    1160 </span>                :     };
<span class="lineNum">    1161 </span>                : 
<span class="lineNum">    1162 </span>                : #ifdef _GLIBCXX_USE_WCHAR_T
<span class="lineNum">    1163 </span>                :   // 22.2.1.3  ctype&lt;wchar_t&gt; specialization
<span class="lineNum">    1164 </span>                :   /**
<span class="lineNum">    1165 </span>                :    *  @brief  The ctype&lt;wchar_t&gt; specialization.
<span class="lineNum">    1166 </span>                :    *
<span class="lineNum">    1167 </span>                :    *  This class defines classification and conversion functions for the
<span class="lineNum">    1168 </span>                :    *  wchar_t type.  It gets used by wchar_t streams for many I/O operations.
<span class="lineNum">    1169 </span>                :    *  The wchar_t specialization provides a number of optimizations as well.
<span class="lineNum">    1170 </span>                :    *
<span class="lineNum">    1171 </span>                :    *  ctype&lt;wchar_t&gt; inherits its public methods from
<span class="lineNum">    1172 </span>                :    *  __ctype_abstract_base&lt;wchar_t&gt;.
<span class="lineNum">    1173 </span>                :   */
<span class="lineNum">    1174 </span>                :   template&lt;&gt;
<span class="lineNum">    1175 </span>                :     class ctype&lt;wchar_t&gt; : public __ctype_abstract_base&lt;wchar_t&gt;
<span class="lineNum">    1176 </span>                :     {
<span class="lineNum">    1177 </span>                :     public:
<span class="lineNum">    1178 </span>                :       // Types:
<span class="lineNum">    1179 </span>                :       /// Typedef for the template parameter wchar_t.
<span class="lineNum">    1180 </span>                :       typedef wchar_t           char_type;
<span class="lineNum">    1181 </span>                :       typedef wctype_t          __wmask_type;
<span class="lineNum">    1182 </span>                : 
<span class="lineNum">    1183 </span>                :     protected:
<span class="lineNum">    1184 </span>                :       __c_locale                _M_c_locale_ctype;
<span class="lineNum">    1185 </span>                : 
<span class="lineNum">    1186 </span>                :       // Pre-computed narrowed and widened chars.
<span class="lineNum">    1187 </span>                :       bool                      _M_narrow_ok;
<span class="lineNum">    1188 </span>                :       char                      _M_narrow[128];
<span class="lineNum">    1189 </span>                :       wint_t                    _M_widen[1 + static_cast&lt;unsigned char&gt;(-1)];
<span class="lineNum">    1190 </span>                : 
<span class="lineNum">    1191 </span>                :       // Pre-computed elements for do_is.
<span class="lineNum">    1192 </span>                :       mask                      _M_bit[16];
<span class="lineNum">    1193 </span>                :       __wmask_type              _M_wmask[16];
<span class="lineNum">    1194 </span>                : 
<span class="lineNum">    1195 </span>                :     public:
<span class="lineNum">    1196 </span>                :       // Data Members:
<span class="lineNum">    1197 </span>                :       /// The facet id for ctype&lt;wchar_t&gt;
<span class="lineNum">    1198 </span>                :       static locale::id         id;
<span class="lineNum">    1199 </span>                : 
<span class="lineNum">    1200 </span>                :       /**
<span class="lineNum">    1201 </span>                :        *  @brief  Constructor performs initialization.
<span class="lineNum">    1202 </span>                :        *
<span class="lineNum">    1203 </span>                :        *  This is the constructor provided by the standard.
<span class="lineNum">    1204 </span>                :        *
<span class="lineNum">    1205 </span>                :        *  @param refs  Passed to the base facet class.
<span class="lineNum">    1206 </span>                :       */
<span class="lineNum">    1207 </span>                :       explicit
<span class="lineNum">    1208 </span>                :       ctype(size_t __refs = 0);
<span class="lineNum">    1209 </span>                : 
<span class="lineNum">    1210 </span>                :       /**
<span class="lineNum">    1211 </span>                :        *  @brief  Constructor performs static initialization.
<span class="lineNum">    1212 </span>                :        *
<span class="lineNum">    1213 </span>                :        *  This constructor is used to construct the initial C locale facet.
<span class="lineNum">    1214 </span>                :        *
<span class="lineNum">    1215 </span>                :        *  @param cloc  Handle to C locale data.
<span class="lineNum">    1216 </span>                :        *  @param refs  Passed to the base facet class.
<span class="lineNum">    1217 </span>                :       */
<span class="lineNum">    1218 </span>                :       explicit
<span class="lineNum">    1219 </span>                :       ctype(__c_locale __cloc, size_t __refs = 0);
<span class="lineNum">    1220 </span>                : 
<span class="lineNum">    1221 </span>                :     protected:
<span class="lineNum">    1222 </span>                :       __wmask_type
<span class="lineNum">    1223 </span>                :       _M_convert_to_wmask(const mask __m) const;
<span class="lineNum">    1224 </span>                : 
<span class="lineNum">    1225 </span>                :       /// Destructor
<span class="lineNum">    1226 </span>                :       virtual
<span class="lineNum">    1227 </span>                :       ~ctype();
<span class="lineNum">    1228 </span>                : 
<span class="lineNum">    1229 </span>                :       /**
<span class="lineNum">    1230 </span>                :        *  @brief  Test wchar_t classification.
<span class="lineNum">    1231 </span>                :        *
<span class="lineNum">    1232 </span>                :        *  This function finds a mask M for @a c and compares it to mask @a m.
<span class="lineNum">    1233 </span>                :        *
<span class="lineNum">    1234 </span>                :        *  do_is() is a hook for a derived facet to change the behavior of
<span class="lineNum">    1235 </span>                :        *  classifying.  do_is() must always return the same result for the
<span class="lineNum">    1236 </span>                :        *  same input.
<span class="lineNum">    1237 </span>                :        *
<span class="lineNum">    1238 </span>                :        *  @param c  The wchar_t to find the mask of.
<span class="lineNum">    1239 </span>                :        *  @param m  The mask to compare against.
<span class="lineNum">    1240 </span>                :        *  @return  (M &amp; m) != 0.
<span class="lineNum">    1241 </span>                :       */
<span class="lineNum">    1242 </span>                :       virtual bool
<span class="lineNum">    1243 </span>                :       do_is(mask __m, char_type __c) const;
<span class="lineNum">    1244 </span>                : 
<span class="lineNum">    1245 </span>                :       /**
<span class="lineNum">    1246 </span>                :        *  @brief  Return a mask array.
<span class="lineNum">    1247 </span>                :        *
<span class="lineNum">    1248 </span>                :        *  This function finds the mask for each wchar_t in the range [lo,hi)
<span class="lineNum">    1249 </span>                :        *  and successively writes it to vec.  vec must have as many elements
<span class="lineNum">    1250 </span>                :        *  as the input.
<span class="lineNum">    1251 </span>                :        *
<span class="lineNum">    1252 </span>                :        *  do_is() is a hook for a derived facet to change the behavior of
<span class="lineNum">    1253 </span>                :        *  classifying.  do_is() must always return the same result for the
<span class="lineNum">    1254 </span>                :        *  same input.
<span class="lineNum">    1255 </span>                :        *
<span class="lineNum">    1256 </span>                :        *  @param lo  Pointer to start of range.
<span class="lineNum">    1257 </span>                :        *  @param hi  Pointer to end of range.
<span class="lineNum">    1258 </span>                :        *  @param vec  Pointer to an array of mask storage.
<span class="lineNum">    1259 </span>                :        *  @return  @a hi.
<span class="lineNum">    1260 </span>                :       */
<span class="lineNum">    1261 </span>                :       virtual const char_type*
<span class="lineNum">    1262 </span>                :       do_is(const char_type* __lo, const char_type* __hi, mask* __vec) const;
<span class="lineNum">    1263 </span>                : 
<span class="lineNum">    1264 </span>                :       /**
<span class="lineNum">    1265 </span>                :        *  @brief  Find wchar_t matching mask
<span class="lineNum">    1266 </span>                :        *
<span class="lineNum">    1267 </span>                :        *  This function searches for and returns the first wchar_t c in
<span class="lineNum">    1268 </span>                :        *  [lo,hi) for which is(m,c) is true.
<span class="lineNum">    1269 </span>                :        *
<span class="lineNum">    1270 </span>                :        *  do_scan_is() is a hook for a derived facet to change the behavior of
<span class="lineNum">    1271 </span>                :        *  match searching.  do_is() must always return the same result for the
<span class="lineNum">    1272 </span>                :        *  same input.
<span class="lineNum">    1273 </span>                :        *
<span class="lineNum">    1274 </span>                :        *  @param m  The mask to compare against.
<span class="lineNum">    1275 </span>                :        *  @param lo  Pointer to start of range.
<span class="lineNum">    1276 </span>                :        *  @param hi  Pointer to end of range.
<span class="lineNum">    1277 </span>                :        *  @return  Pointer to a matching wchar_t if found, else @a hi.
<span class="lineNum">    1278 </span>                :       */
<span class="lineNum">    1279 </span>                :       virtual const char_type*
<span class="lineNum">    1280 </span>                :       do_scan_is(mask __m, const char_type* __lo, const char_type* __hi) const;
<span class="lineNum">    1281 </span>                : 
<span class="lineNum">    1282 </span>                :       /**
<span class="lineNum">    1283 </span>                :        *  @brief  Find wchar_t not matching mask
<span class="lineNum">    1284 </span>                :        *
<span class="lineNum">    1285 </span>                :        *  This function searches for and returns a pointer to the first
<span class="lineNum">    1286 </span>                :        *  wchar_t c of [lo,hi) for which is(m,c) is false.
<span class="lineNum">    1287 </span>                :        *
<span class="lineNum">    1288 </span>                :        *  do_scan_is() is a hook for a derived facet to change the behavior of
<span class="lineNum">    1289 </span>                :        *  match searching.  do_is() must always return the same result for the
<span class="lineNum">    1290 </span>                :        *  same input.
<span class="lineNum">    1291 </span>                :        *
<span class="lineNum">    1292 </span>                :        *  @param m  The mask to compare against.
<span class="lineNum">    1293 </span>                :        *  @param lo  Pointer to start of range.
<span class="lineNum">    1294 </span>                :        *  @param hi  Pointer to end of range.
<span class="lineNum">    1295 </span>                :        *  @return  Pointer to a non-matching wchar_t if found, else @a hi.
<span class="lineNum">    1296 </span>                :       */
<span class="lineNum">    1297 </span>                :       virtual const char_type*
<span class="lineNum">    1298 </span>                :       do_scan_not(mask __m, const char_type* __lo,
<span class="lineNum">    1299 </span>                :                   const char_type* __hi) const;
<span class="lineNum">    1300 </span>                : 
<span class="lineNum">    1301 </span>                :       /**
<span class="lineNum">    1302 </span>                :        *  @brief  Convert to uppercase.
<span class="lineNum">    1303 </span>                :        *
<span class="lineNum">    1304 </span>                :        *  This virtual function converts the wchar_t argument to uppercase if
<span class="lineNum">    1305 </span>                :        *  possible.  If not possible (for example, '2'), returns the argument.
<span class="lineNum">    1306 </span>                :        *
<span class="lineNum">    1307 </span>                :        *  do_toupper() is a hook for a derived facet to change the behavior of
<span class="lineNum">    1308 </span>                :        *  uppercasing.  do_toupper() must always return the same result for
<span class="lineNum">    1309 </span>                :        *  the same input.
<span class="lineNum">    1310 </span>                :        *
<span class="lineNum">    1311 </span>                :        *  @param c  The wchar_t to convert.
<span class="lineNum">    1312 </span>                :        *  @return  The uppercase wchar_t if convertible, else @a c.
<span class="lineNum">    1313 </span>                :       */
<span class="lineNum">    1314 </span>                :       virtual char_type
<span class="lineNum">    1315 </span>                :       do_toupper(char_type) const;
<span class="lineNum">    1316 </span>                : 
<span class="lineNum">    1317 </span>                :       /**
<span class="lineNum">    1318 </span>                :        *  @brief  Convert array to uppercase.
<span class="lineNum">    1319 </span>                :        *
<span class="lineNum">    1320 </span>                :        *  This virtual function converts each wchar_t in the range [lo,hi) to
<span class="lineNum">    1321 </span>                :        *  uppercase if possible.  Other elements remain untouched.
<span class="lineNum">    1322 </span>                :        *
<span class="lineNum">    1323 </span>                :        *  do_toupper() is a hook for a derived facet to change the behavior of
<span class="lineNum">    1324 </span>                :        *  uppercasing.  do_toupper() must always return the same result for
<span class="lineNum">    1325 </span>                :        *  the same input.
<span class="lineNum">    1326 </span>                :        *
<span class="lineNum">    1327 </span>                :        *  @param lo  Pointer to start of range.
<span class="lineNum">    1328 </span>                :        *  @param hi  Pointer to end of range.
<span class="lineNum">    1329 </span>                :        *  @return  @a hi.
<span class="lineNum">    1330 </span>                :       */
<span class="lineNum">    1331 </span>                :       virtual const char_type*
<span class="lineNum">    1332 </span>                :       do_toupper(char_type* __lo, const char_type* __hi) const;
<span class="lineNum">    1333 </span>                : 
<span class="lineNum">    1334 </span>                :       /**
<span class="lineNum">    1335 </span>                :        *  @brief  Convert to lowercase.
<span class="lineNum">    1336 </span>                :        *
<span class="lineNum">    1337 </span>                :        *  This virtual function converts the argument to lowercase if
<span class="lineNum">    1338 </span>                :        *  possible.  If not possible (for example, '2'), returns the argument.
<span class="lineNum">    1339 </span>                :        *
<span class="lineNum">    1340 </span>                :        *  do_tolower() is a hook for a derived facet to change the behavior of
<span class="lineNum">    1341 </span>                :        *  lowercasing.  do_tolower() must always return the same result for
<span class="lineNum">    1342 </span>                :        *  the same input.
<span class="lineNum">    1343 </span>                :        *
<span class="lineNum">    1344 </span>                :        *  @param c  The wchar_t to convert.
<span class="lineNum">    1345 </span>                :        *  @return  The lowercase wchar_t if convertible, else @a c.
<span class="lineNum">    1346 </span>                :       */
<span class="lineNum">    1347 </span>                :       virtual char_type
<span class="lineNum">    1348 </span>                :       do_tolower(char_type) const;
<span class="lineNum">    1349 </span>                : 
<span class="lineNum">    1350 </span>                :       /**
<span class="lineNum">    1351 </span>                :        *  @brief  Convert array to lowercase.
<span class="lineNum">    1352 </span>                :        *
<span class="lineNum">    1353 </span>                :        *  This virtual function converts each wchar_t in the range [lo,hi) to
<span class="lineNum">    1354 </span>                :        *  lowercase if possible.  Other elements remain untouched.
<span class="lineNum">    1355 </span>                :        *
<span class="lineNum">    1356 </span>                :        *  do_tolower() is a hook for a derived facet to change the behavior of
<span class="lineNum">    1357 </span>                :        *  lowercasing.  do_tolower() must always return the same result for
<span class="lineNum">    1358 </span>                :        *  the same input.
<span class="lineNum">    1359 </span>                :        *
<span class="lineNum">    1360 </span>                :        *  @param lo  Pointer to start of range.
<span class="lineNum">    1361 </span>                :        *  @param hi  Pointer to end of range.
<span class="lineNum">    1362 </span>                :        *  @return  @a hi.
<span class="lineNum">    1363 </span>                :       */
<span class="lineNum">    1364 </span>                :       virtual const char_type*
<span class="lineNum">    1365 </span>                :       do_tolower(char_type* __lo, const char_type* __hi) const;
<span class="lineNum">    1366 </span>                : 
<span class="lineNum">    1367 </span>                :       /**
<span class="lineNum">    1368 </span>                :        *  @brief  Widen char to wchar_t
<span class="lineNum">    1369 </span>                :        *
<span class="lineNum">    1370 </span>                :        *  This virtual function converts the char to wchar_t using the
<span class="lineNum">    1371 </span>                :        *  simplest reasonable transformation.  For an underived ctype&lt;wchar_t&gt;
<span class="lineNum">    1372 </span>                :        *  facet, the argument will be cast to wchar_t.
<span class="lineNum">    1373 </span>                :        *
<span class="lineNum">    1374 </span>                :        *  do_widen() is a hook for a derived facet to change the behavior of
<span class="lineNum">    1375 </span>                :        *  widening.  do_widen() must always return the same result for the
<span class="lineNum">    1376 </span>                :        *  same input.
<span class="lineNum">    1377 </span>                :        *
<span class="lineNum">    1378 </span>                :        *  Note: this is not what you want for codepage conversions.  See
<span class="lineNum">    1379 </span>                :        *  codecvt for that.
<span class="lineNum">    1380 </span>                :        *
<span class="lineNum">    1381 </span>                :        *  @param c  The char to convert.
<span class="lineNum">    1382 </span>                :        *  @return  The converted wchar_t.
<span class="lineNum">    1383 </span>                :       */
<span class="lineNum">    1384 </span>                :       virtual char_type
<span class="lineNum">    1385 </span>                :       do_widen(char) const;
<span class="lineNum">    1386 </span>                : 
<span class="lineNum">    1387 </span>                :       /**
<span class="lineNum">    1388 </span>                :        *  @brief  Widen char array to wchar_t array
<span class="lineNum">    1389 </span>                :        *
<span class="lineNum">    1390 </span>                :        *  This function converts each char in the input to wchar_t using the
<span class="lineNum">    1391 </span>                :        *  simplest reasonable transformation.  For an underived ctype&lt;wchar_t&gt;
<span class="lineNum">    1392 </span>                :        *  facet, the argument will be copied, casting each element to wchar_t.
<span class="lineNum">    1393 </span>                :        *
<span class="lineNum">    1394 </span>                :        *  do_widen() is a hook for a derived facet to change the behavior of
<span class="lineNum">    1395 </span>                :        *  widening.  do_widen() must always return the same result for the
<span class="lineNum">    1396 </span>                :        *  same input.
<span class="lineNum">    1397 </span>                :        *
<span class="lineNum">    1398 </span>                :        *  Note: this is not what you want for codepage conversions.  See
<span class="lineNum">    1399 </span>                :        *  codecvt for that.
<span class="lineNum">    1400 </span>                :        *
<span class="lineNum">    1401 </span>                :        *  @param lo  Pointer to start range.
<span class="lineNum">    1402 </span>                :        *  @param hi  Pointer to end of range.
<span class="lineNum">    1403 </span>                :        *  @param to  Pointer to the destination array.
<span class="lineNum">    1404 </span>                :        *  @return  @a hi.
<span class="lineNum">    1405 </span>                :       */
<span class="lineNum">    1406 </span>                :       virtual const char*
<span class="lineNum">    1407 </span>                :       do_widen(const char* __lo, const char* __hi, char_type* __dest) const;
<span class="lineNum">    1408 </span>                : 
<span class="lineNum">    1409 </span>                :       /**
<span class="lineNum">    1410 </span>                :        *  @brief  Narrow wchar_t to char
<span class="lineNum">    1411 </span>                :        *
<span class="lineNum">    1412 </span>                :        *  This virtual function converts the argument to char using
<span class="lineNum">    1413 </span>                :        *  the simplest reasonable transformation.  If the conversion
<span class="lineNum">    1414 </span>                :        *  fails, dfault is returned instead.  For an underived
<span class="lineNum">    1415 </span>                :        *  ctype&lt;wchar_t&gt; facet, @a c will be cast to char and
<span class="lineNum">    1416 </span>                :        *  returned.
<span class="lineNum">    1417 </span>                :        *
<span class="lineNum">    1418 </span>                :        *  do_narrow() is a hook for a derived facet to change the
<span class="lineNum">    1419 </span>                :        *  behavior of narrowing.  do_narrow() must always return the
<span class="lineNum">    1420 </span>                :        *  same result for the same input.
<span class="lineNum">    1421 </span>                :        *
<span class="lineNum">    1422 </span>                :        *  Note: this is not what you want for codepage conversions.  See
<span class="lineNum">    1423 </span>                :        *  codecvt for that.
<span class="lineNum">    1424 </span>                :        *
<span class="lineNum">    1425 </span>                :        *  @param c  The wchar_t to convert.
<span class="lineNum">    1426 </span>                :        *  @param dfault  Char to return if conversion fails.
<span class="lineNum">    1427 </span>                :        *  @return  The converted char.
<span class="lineNum">    1428 </span>                :       */
<span class="lineNum">    1429 </span>                :       virtual char
<span class="lineNum">    1430 </span>                :       do_narrow(char_type, char __dfault) const;
<span class="lineNum">    1431 </span>                : 
<span class="lineNum">    1432 </span>                :       /**
<span class="lineNum">    1433 </span>                :        *  @brief  Narrow wchar_t array to char array
<span class="lineNum">    1434 </span>                :        *
<span class="lineNum">    1435 </span>                :        *  This virtual function converts each wchar_t in the range [lo,hi) to
<span class="lineNum">    1436 </span>                :        *  char using the simplest reasonable transformation and writes the
<span class="lineNum">    1437 </span>                :        *  results to the destination array.  For any wchar_t in the input that
<span class="lineNum">    1438 </span>                :        *  cannot be converted, @a dfault is used instead.  For an underived
<span class="lineNum">    1439 </span>                :        *  ctype&lt;wchar_t&gt; facet, the argument will be copied, casting each
<span class="lineNum">    1440 </span>                :        *  element to char.
<span class="lineNum">    1441 </span>                :        *
<span class="lineNum">    1442 </span>                :        *  do_narrow() is a hook for a derived facet to change the behavior of
<span class="lineNum">    1443 </span>                :        *  narrowing.  do_narrow() must always return the same result for the
<span class="lineNum">    1444 </span>                :        *  same input.
<span class="lineNum">    1445 </span>                :        *
<span class="lineNum">    1446 </span>                :        *  Note: this is not what you want for codepage conversions.  See
<span class="lineNum">    1447 </span>                :        *  codecvt for that.
<span class="lineNum">    1448 </span>                :        *
<span class="lineNum">    1449 </span>                :        *  @param lo  Pointer to start of range.
<span class="lineNum">    1450 </span>                :        *  @param hi  Pointer to end of range.
<span class="lineNum">    1451 </span>                :        *  @param dfault  Char to use if conversion fails.
<span class="lineNum">    1452 </span>                :        *  @param to  Pointer to the destination array.
<span class="lineNum">    1453 </span>                :        *  @return  @a hi.
<span class="lineNum">    1454 </span>                :       */
<span class="lineNum">    1455 </span>                :       virtual const char_type*
<span class="lineNum">    1456 </span>                :       do_narrow(const char_type* __lo, const char_type* __hi,
<span class="lineNum">    1457 </span>                :                 char __dfault, char* __dest) const;
<span class="lineNum">    1458 </span>                : 
<span class="lineNum">    1459 </span>                :       // For use at construction time only.
<span class="lineNum">    1460 </span>                :       void
<span class="lineNum">    1461 </span>                :       _M_initialize_ctype();
<span class="lineNum">    1462 </span>                :     };
<span class="lineNum">    1463 </span>                : #endif //_GLIBCXX_USE_WCHAR_T
<span class="lineNum">    1464 </span>                : 
<span class="lineNum">    1465 </span>                :   /// class ctype_byname [22.2.1.2].
<span class="lineNum">    1466 </span>                :   template&lt;typename _CharT&gt;
<span class="lineNum">    1467 </span>                :     class ctype_byname : public ctype&lt;_CharT&gt;
<span class="lineNum">    1468 </span>                :     {
<span class="lineNum">    1469 </span>                :     public:
<span class="lineNum">    1470 </span>                :       typedef typename ctype&lt;_CharT&gt;::mask  mask;
<span class="lineNum">    1471 </span>                : 
<span class="lineNum">    1472 </span>                :       explicit
<span class="lineNum">    1473 </span>                :       ctype_byname(const char* __s, size_t __refs = 0);
<span class="lineNum">    1474 </span>                : 
<span class="lineNum">    1475 </span>                :     protected:
<span class="lineNum">    1476 </span>                :       virtual
<span class="lineNum">    1477 </span>                :       ~ctype_byname() { };
<span class="lineNum">    1478 </span>                :     };
<span class="lineNum">    1479 </span>                : 
<span class="lineNum">    1480 </span>                :   /// 22.2.1.4  Class ctype_byname specializations.
<span class="lineNum">    1481 </span>                :   template&lt;&gt;
<span class="lineNum">    1482 </span>                :     class ctype_byname&lt;char&gt; : public ctype&lt;char&gt;
<span class="lineNum">    1483 </span>                :     {
<span class="lineNum">    1484 </span>                :     public:
<span class="lineNum">    1485 </span>                :       explicit
<span class="lineNum">    1486 </span>                :       ctype_byname(const char* __s, size_t __refs = 0);
<span class="lineNum">    1487 </span>                : 
<span class="lineNum">    1488 </span>                :     protected:
<span class="lineNum">    1489 </span>                :       virtual
<span class="lineNum">    1490 </span>                :       ~ctype_byname();
<span class="lineNum">    1491 </span>                :     };
<span class="lineNum">    1492 </span>                : 
<span class="lineNum">    1493 </span>                : #ifdef _GLIBCXX_USE_WCHAR_T
<span class="lineNum">    1494 </span>                :   template&lt;&gt;
<span class="lineNum">    1495 </span>                :     class ctype_byname&lt;wchar_t&gt; : public ctype&lt;wchar_t&gt;
<span class="lineNum">    1496 </span>                :     {
<span class="lineNum">    1497 </span>                :     public:
<span class="lineNum">    1498 </span>                :       explicit
<span class="lineNum">    1499 </span>                :       ctype_byname(const char* __s, size_t __refs = 0);
<span class="lineNum">    1500 </span>                : 
<span class="lineNum">    1501 </span>                :     protected:
<span class="lineNum">    1502 </span>                :       virtual
<span class="lineNum">    1503 </span>                :       ~ctype_byname();
<span class="lineNum">    1504 </span>                :     };
<span class="lineNum">    1505 </span>                : #endif
<span class="lineNum">    1506 </span>                : 
<span class="lineNum">    1507 </span>                : _GLIBCXX_END_NAMESPACE
<span class="lineNum">    1508 </span>                : 
<span class="lineNum">    1509 </span>                : // Include host and configuration specific ctype inlines.
<span class="lineNum">    1510 </span>                : #include &lt;bits/ctype_inline.h&gt;
<span class="lineNum">    1511 </span>                : 
<span class="lineNum">    1512 </span>                : _GLIBCXX_BEGIN_NAMESPACE(std)
<span class="lineNum">    1513 </span>                : 
<span class="lineNum">    1514 </span>                :   // 22.2.2  The numeric category.
<span class="lineNum">    1515 </span>                :   class __num_base
<span class="lineNum">    1516 </span>                :   {
<span class="lineNum">    1517 </span>                :   public:
<span class="lineNum">    1518 </span>                :     // NB: Code depends on the order of _S_atoms_out elements.
<span class="lineNum">    1519 </span>                :     // Below are the indices into _S_atoms_out.
<span class="lineNum">    1520 </span>                :     enum
<span class="lineNum">    1521 </span>                :       {
<span class="lineNum">    1522 </span>                :         _S_ominus,
<span class="lineNum">    1523 </span>                :         _S_oplus,
<span class="lineNum">    1524 </span>                :         _S_ox,
<span class="lineNum">    1525 </span>                :         _S_oX,
<span class="lineNum">    1526 </span>                :         _S_odigits,
<span class="lineNum">    1527 </span>                :         _S_odigits_end = _S_odigits + 16,
<span class="lineNum">    1528 </span>                :         _S_oudigits = _S_odigits_end,
<span class="lineNum">    1529 </span>                :         _S_oudigits_end = _S_oudigits + 16,
<span class="lineNum">    1530 </span>                :         _S_oe = _S_odigits + 14,  // For scientific notation, 'e'
<span class="lineNum">    1531 </span>                :         _S_oE = _S_oudigits + 14, // For scientific notation, 'E'
<span class="lineNum">    1532 </span>                :         _S_oend = _S_oudigits_end
<span class="lineNum">    1533 </span>                :       };
<span class="lineNum">    1534 </span>                : 
<span class="lineNum">    1535 </span>                :     // A list of valid numeric literals for output.  This array
<span class="lineNum">    1536 </span>                :     // contains chars that will be passed through the current locale's
<span class="lineNum">    1537 </span>                :     // ctype&lt;_CharT&gt;.widen() and then used to render numbers.
<span class="lineNum">    1538 </span>                :     // For the standard &quot;C&quot; locale, this is
<span class="lineNum">    1539 </span>                :     // &quot;-+xX0123456789abcdef0123456789ABCDEF&quot;.
<span class="lineNum">    1540 </span>                :     static const char* _S_atoms_out;
<span class="lineNum">    1541 </span>                : 
<span class="lineNum">    1542 </span>                :     // String literal of acceptable (narrow) input, for num_get.
<span class="lineNum">    1543 </span>                :     // &quot;-+xX0123456789abcdefABCDEF&quot;
<span class="lineNum">    1544 </span>                :     static const char* _S_atoms_in;
<span class="lineNum">    1545 </span>                : 
<span class="lineNum">    1546 </span>                :     enum
<span class="lineNum">    1547 </span>                :     {
<span class="lineNum">    1548 </span>                :       _S_iminus,
<span class="lineNum">    1549 </span>                :       _S_iplus,
<span class="lineNum">    1550 </span>                :       _S_ix,
<span class="lineNum">    1551 </span>                :       _S_iX,
<span class="lineNum">    1552 </span>                :       _S_izero,
<span class="lineNum">    1553 </span>                :       _S_ie = _S_izero + 14,
<span class="lineNum">    1554 </span>                :       _S_iE = _S_izero + 20,
<span class="lineNum">    1555 </span>                :       _S_iend = 26
<span class="lineNum">    1556 </span>                :     };
<span class="lineNum">    1557 </span>                : 
<span class="lineNum">    1558 </span>                :     // num_put
<span class="lineNum">    1559 </span>                :     // Construct and return valid scanf format for floating point types.
<span class="lineNum">    1560 </span>                :     static void
<span class="lineNum">    1561 </span>                :     _S_format_float(const ios_base&amp; __io, char* __fptr, char __mod);
<span class="lineNum">    1562 </span>                :   };
<span class="lineNum">    1563 </span>                : 
<span class="lineNum">    1564 </span>                :   template&lt;typename _CharT&gt;
<span class="lineNum">    1565 </span>                :     struct __numpunct_cache : public locale::facet
<span class="lineNum">    1566 </span>                :     {
<span class="lineNum">    1567 </span>                :       const char*                       _M_grouping;
<span class="lineNum">    1568 </span>                :       size_t                            _M_grouping_size;
<span class="lineNum">    1569 </span>                :       bool                              _M_use_grouping;
<span class="lineNum">    1570 </span>                :       const _CharT*                     _M_truename;
<span class="lineNum">    1571 </span>                :       size_t                            _M_truename_size;
<span class="lineNum">    1572 </span>                :       const _CharT*                     _M_falsename;
<span class="lineNum">    1573 </span>                :       size_t                            _M_falsename_size;
<span class="lineNum">    1574 </span>                :       _CharT                            _M_decimal_point;
<span class="lineNum">    1575 </span>                :       _CharT                            _M_thousands_sep;
<span class="lineNum">    1576 </span>                : 
<span class="lineNum">    1577 </span>                :       // A list of valid numeric literals for output: in the standard
<span class="lineNum">    1578 </span>                :       // &quot;C&quot; locale, this is &quot;-+xX0123456789abcdef0123456789ABCDEF&quot;.
<span class="lineNum">    1579 </span>                :       // This array contains the chars after having been passed
<span class="lineNum">    1580 </span>                :       // through the current locale's ctype&lt;_CharT&gt;.widen().
<span class="lineNum">    1581 </span>                :       _CharT                            _M_atoms_out[__num_base::_S_oend];
<span class="lineNum">    1582 </span>                : 
<span class="lineNum">    1583 </span>                :       // A list of valid numeric literals for input: in the standard
<span class="lineNum">    1584 </span>                :       // &quot;C&quot; locale, this is &quot;-+xX0123456789abcdefABCDEF&quot;
<span class="lineNum">    1585 </span>                :       // This array contains the chars after having been passed
<span class="lineNum">    1586 </span>                :       // through the current locale's ctype&lt;_CharT&gt;.widen().
<span class="lineNum">    1587 </span>                :       _CharT                            _M_atoms_in[__num_base::_S_iend];
<span class="lineNum">    1588 </span>                : 
<span class="lineNum">    1589 </span>                :       bool                              _M_allocated;
<span class="lineNum">    1590 </span>                : 
<span class="lineNum">    1591 </span>                :       __numpunct_cache(size_t __refs = 0) : facet(__refs),
<span class="lineNum">    1592 </span>                :       _M_grouping(NULL), _M_grouping_size(0), _M_use_grouping(false),
<span class="lineNum">    1593 </span>                :       _M_truename(NULL), _M_truename_size(0), _M_falsename(NULL),
<span class="lineNum">    1594 </span>                :       _M_falsename_size(0), _M_decimal_point(_CharT()),
<span class="lineNum">    1595 </span>                :       _M_thousands_sep(_CharT()), _M_allocated(false)
<span class="lineNum">    1596 </span>                :       { }
<span class="lineNum">    1597 </span>                : 
<span class="lineNum">    1598 </span>                :       ~__numpunct_cache();
<span class="lineNum">    1599 </span>                : 
<span class="lineNum">    1600 </span>                :       void
<span class="lineNum">    1601 </span>                :       _M_cache(const locale&amp; __loc);
<span class="lineNum">    1602 </span>                : 
<span class="lineNum">    1603 </span>                :     private:
<span class="lineNum">    1604 </span>                :       __numpunct_cache&amp;
<span class="lineNum">    1605 </span>                :       operator=(const __numpunct_cache&amp;);
<span class="lineNum">    1606 </span>                :       
<span class="lineNum">    1607 </span>                :       explicit
<span class="lineNum">    1608 </span>                :       __numpunct_cache(const __numpunct_cache&amp;);
<span class="lineNum">    1609 </span>                :     };
<span class="lineNum">    1610 </span>                : 
<span class="lineNum">    1611 </span>                :   template&lt;typename _CharT&gt;
<span class="lineNum">    1612 </span>                :     __numpunct_cache&lt;_CharT&gt;::~__numpunct_cache()
<span class="lineNum">    1613 </span>                :     {
<span class="lineNum">    1614 </span>                :       if (_M_allocated)
<span class="lineNum">    1615 </span>                :         {
<span class="lineNum">    1616 </span>                :           delete [] _M_grouping;
<span class="lineNum">    1617 </span>                :           delete [] _M_truename;
<span class="lineNum">    1618 </span>                :           delete [] _M_falsename;
<span class="lineNum">    1619 </span>                :         }
<span class="lineNum">    1620 </span>                :     }
<span class="lineNum">    1621 </span>                : 
<span class="lineNum">    1622 </span>                :   /**
<span class="lineNum">    1623 </span>                :    *  @brief  Numpunct facet.
<span class="lineNum">    1624 </span>                :    *
<span class="lineNum">    1625 </span>                :    *  This facet stores several pieces of information related to printing and
<span class="lineNum">    1626 </span>                :    *  scanning numbers, such as the decimal point character.  It takes a
<span class="lineNum">    1627 </span>                :    *  template parameter specifying the char type.  The numpunct facet is
<span class="lineNum">    1628 </span>                :    *  used by streams for many I/O operations involving numbers.
<span class="lineNum">    1629 </span>                :    *
<span class="lineNum">    1630 </span>                :    *  The numpunct template uses protected virtual functions to provide the
<span class="lineNum">    1631 </span>                :    *  actual results.  The public accessors forward the call to the virtual
<span class="lineNum">    1632 </span>                :    *  functions.  These virtual functions are hooks for developers to
<span class="lineNum">    1633 </span>                :    *  implement the behavior they require from a numpunct facet.
<span class="lineNum">    1634 </span>                :   */
<span class="lineNum">    1635 </span>                :   template&lt;typename _CharT&gt;
<span class="lineNum">    1636 </span>                :     class numpunct : public locale::facet
<span class="lineNum">    1637 </span>                :     {
<span class="lineNum">    1638 </span>                :     public:
<span class="lineNum">    1639 </span>                :       // Types:
<span class="lineNum">    1640 </span>                :       //@{
<span class="lineNum">    1641 </span>                :       /// Public typedefs
<span class="lineNum">    1642 </span>                :       typedef _CharT                    char_type;
<span class="lineNum">    1643 </span>                :       typedef basic_string&lt;_CharT&gt;        string_type;
<span class="lineNum">    1644 </span>                :       //@}
<span class="lineNum">    1645 </span>                :       typedef __numpunct_cache&lt;_CharT&gt;  __cache_type;
<span class="lineNum">    1646 </span>                : 
<span class="lineNum">    1647 </span>                :     protected:
<span class="lineNum">    1648 </span>                :       __cache_type*                     _M_data;
<span class="lineNum">    1649 </span>                : 
<span class="lineNum">    1650 </span>                :     public:
<span class="lineNum">    1651 </span>                :       /// Numpunct facet id.
<span class="lineNum">    1652 </span>                :       static locale::id                 id;
<span class="lineNum">    1653 </span>                : 
<span class="lineNum">    1654 </span>                :       /**
<span class="lineNum">    1655 </span>                :        *  @brief  Numpunct constructor.
<span class="lineNum">    1656 </span>                :        *
<span class="lineNum">    1657 </span>                :        *  @param  refs  Refcount to pass to the base class.
<span class="lineNum">    1658 </span>                :        */
<span class="lineNum">    1659 </span>                :       explicit
<span class="lineNum">    1660 </span>                :       numpunct(size_t __refs = 0) : facet(__refs), _M_data(NULL)
<span class="lineNum">    1661 </span>                :       { _M_initialize_numpunct(); }
<span class="lineNum">    1662 </span>                : 
<span class="lineNum">    1663 </span>                :       /**
<span class="lineNum">    1664 </span>                :        *  @brief  Internal constructor.  Not for general use.
<span class="lineNum">    1665 </span>                :        *
<span class="lineNum">    1666 </span>                :        *  This is a constructor for use by the library itself to set up the
<span class="lineNum">    1667 </span>                :        *  predefined locale facets.
<span class="lineNum">    1668 </span>                :        *
<span class="lineNum">    1669 </span>                :        *  @param  cache  __numpunct_cache object.
<span class="lineNum">    1670 </span>                :        *  @param  refs  Refcount to pass to the base class.
<span class="lineNum">    1671 </span>                :        */
<span class="lineNum">    1672 </span>                :       explicit
<span class="lineNum">    1673 </span>                :       numpunct(__cache_type* __cache, size_t __refs = 0)
<span class="lineNum">    1674 </span>                :       : facet(__refs), _M_data(__cache)
<span class="lineNum">    1675 </span>                :       { _M_initialize_numpunct(); }
<span class="lineNum">    1676 </span>                : 
<span class="lineNum">    1677 </span>                :       /**
<span class="lineNum">    1678 </span>                :        *  @brief  Internal constructor.  Not for general use.
<span class="lineNum">    1679 </span>                :        *
<span class="lineNum">    1680 </span>                :        *  This is a constructor for use by the library itself to set up new
<span class="lineNum">    1681 </span>                :        *  locales.
<span class="lineNum">    1682 </span>                :        *
<span class="lineNum">    1683 </span>                :        *  @param  cloc  The &quot;C&quot; locale.
<span class="lineNum">    1684 </span>                :        *  @param  refs  Refcount to pass to the base class.
<span class="lineNum">    1685 </span>                :        */
<span class="lineNum">    1686 </span>                :       explicit
<span class="lineNum">    1687 </span>                :       numpunct(__c_locale __cloc, size_t __refs = 0)
<span class="lineNum">    1688 </span>                :       : facet(__refs), _M_data(NULL)
<span class="lineNum">    1689 </span>                :       { _M_initialize_numpunct(__cloc); }
<span class="lineNum">    1690 </span>                : 
<span class="lineNum">    1691 </span>                :       /**
<span class="lineNum">    1692 </span>                :        *  @brief  Return decimal point character.
<span class="lineNum">    1693 </span>                :        *
<span class="lineNum">    1694 </span>                :        *  This function returns a char_type to use as a decimal point.  It
<span class="lineNum">    1695 </span>                :        *  does so by returning returning
<span class="lineNum">    1696 </span>                :        *  numpunct&lt;char_type&gt;::do_decimal_point().
<span class="lineNum">    1697 </span>                :        *
<span class="lineNum">    1698 </span>                :        *  @return  @a char_type representing a decimal point.
<span class="lineNum">    1699 </span>                :       */
<span class="lineNum">    1700 </span>                :       char_type
<span class="lineNum">    1701 </span>                :       decimal_point() const
<span class="lineNum">    1702 </span>                :       { return this-&gt;do_decimal_point(); }
<span class="lineNum">    1703 </span>                : 
<span class="lineNum">    1704 </span>                :       /**
<span class="lineNum">    1705 </span>                :        *  @brief  Return thousands separator character.
<span class="lineNum">    1706 </span>                :        *
<span class="lineNum">    1707 </span>                :        *  This function returns a char_type to use as a thousands
<span class="lineNum">    1708 </span>                :        *  separator.  It does so by returning returning
<span class="lineNum">    1709 </span>                :        *  numpunct&lt;char_type&gt;::do_thousands_sep().
<span class="lineNum">    1710 </span>                :        *
<span class="lineNum">    1711 </span>                :        *  @return  char_type representing a thousands separator.
<span class="lineNum">    1712 </span>                :       */
<span class="lineNum">    1713 </span>                :       char_type
<span class="lineNum">    1714 </span>                :       thousands_sep() const
<span class="lineNum">    1715 </span>                :       { return this-&gt;do_thousands_sep(); }
<span class="lineNum">    1716 </span>                : 
<span class="lineNum">    1717 </span>                :       /**
<span class="lineNum">    1718 </span>                :        *  @brief  Return grouping specification.
<span class="lineNum">    1719 </span>                :        *
<span class="lineNum">    1720 </span>                :        *  This function returns a string representing groupings for the
<span class="lineNum">    1721 </span>                :        *  integer part of a number.  Groupings indicate where thousands
<span class="lineNum">    1722 </span>                :        *  separators should be inserted in the integer part of a number.
<span class="lineNum">    1723 </span>                :        *
<span class="lineNum">    1724 </span>                :        *  Each char in the return string is interpret as an integer
<span class="lineNum">    1725 </span>                :        *  rather than a character.  These numbers represent the number
<span class="lineNum">    1726 </span>                :        *  of digits in a group.  The first char in the string
<span class="lineNum">    1727 </span>                :        *  represents the number of digits in the least significant
<span class="lineNum">    1728 </span>                :        *  group.  If a char is negative, it indicates an unlimited
<span class="lineNum">    1729 </span>                :        *  number of digits for the group.  If more chars from the
<span class="lineNum">    1730 </span>                :        *  string are required to group a number, the last char is used
<span class="lineNum">    1731 </span>                :        *  repeatedly.
<span class="lineNum">    1732 </span>                :        *
<span class="lineNum">    1733 </span>                :        *  For example, if the grouping() returns &quot;\003\002&quot; and is
<span class="lineNum">    1734 </span>                :        *  applied to the number 123456789, this corresponds to
<span class="lineNum">    1735 </span>                :        *  12,34,56,789.  Note that if the string was &quot;32&quot;, this would
<span class="lineNum">    1736 </span>                :        *  put more than 50 digits into the least significant group if
<span class="lineNum">    1737 </span>                :        *  the character set is ASCII.
<span class="lineNum">    1738 </span>                :        *
<span class="lineNum">    1739 </span>                :        *  The string is returned by calling
<span class="lineNum">    1740 </span>                :        *  numpunct&lt;char_type&gt;::do_grouping().
<span class="lineNum">    1741 </span>                :        *
<span class="lineNum">    1742 </span>                :        *  @return  string representing grouping specification.
<span class="lineNum">    1743 </span>                :       */
<span class="lineNum">    1744 </span>                :       string
<span class="lineNum">    1745 </span>                :       grouping() const
<span class="lineNum">    1746 </span>                :       { return this-&gt;do_grouping(); }
<span class="lineNum">    1747 </span>                : 
<span class="lineNum">    1748 </span>                :       /**
<span class="lineNum">    1749 </span>                :        *  @brief  Return string representation of bool true.
<span class="lineNum">    1750 </span>                :        *
<span class="lineNum">    1751 </span>                :        *  This function returns a string_type containing the text
<span class="lineNum">    1752 </span>                :        *  representation for true bool variables.  It does so by calling
<span class="lineNum">    1753 </span>                :        *  numpunct&lt;char_type&gt;::do_truename().
<span class="lineNum">    1754 </span>                :        *
<span class="lineNum">    1755 </span>                :        *  @return  string_type representing printed form of true.
<span class="lineNum">    1756 </span>                :       */
<span class="lineNum">    1757 </span>                :       string_type
<span class="lineNum">    1758 </span>                :       truename() const
<span class="lineNum">    1759 </span>                :       { return this-&gt;do_truename(); }
<span class="lineNum">    1760 </span>                : 
<span class="lineNum">    1761 </span>                :       /**
<span class="lineNum">    1762 </span>                :        *  @brief  Return string representation of bool false.
<span class="lineNum">    1763 </span>                :        *
<span class="lineNum">    1764 </span>                :        *  This function returns a string_type containing the text
<span class="lineNum">    1765 </span>                :        *  representation for false bool variables.  It does so by calling
<span class="lineNum">    1766 </span>                :        *  numpunct&lt;char_type&gt;::do_falsename().
<span class="lineNum">    1767 </span>                :        *
<span class="lineNum">    1768 </span>                :        *  @return  string_type representing printed form of false.
<span class="lineNum">    1769 </span>                :       */
<span class="lineNum">    1770 </span>                :       string_type
<span class="lineNum">    1771 </span>                :       falsename() const
<span class="lineNum">    1772 </span>                :       { return this-&gt;do_falsename(); }
<span class="lineNum">    1773 </span>                : 
<span class="lineNum">    1774 </span>                :     protected:
<span class="lineNum">    1775 </span>                :       /// Destructor.
<span class="lineNum">    1776 </span>                :       virtual
<span class="lineNum">    1777 </span>                :       ~numpunct();
<span class="lineNum">    1778 </span>                : 
<span class="lineNum">    1779 </span>                :       /**
<span class="lineNum">    1780 </span>                :        *  @brief  Return decimal point character.
<span class="lineNum">    1781 </span>                :        *
<span class="lineNum">    1782 </span>                :        *  Returns a char_type to use as a decimal point.  This function is a
<span class="lineNum">    1783 </span>                :        *  hook for derived classes to change the value returned.
<span class="lineNum">    1784 </span>                :        *
<span class="lineNum">    1785 </span>                :        *  @return  @a char_type representing a decimal point.
<span class="lineNum">    1786 </span>                :       */
<span class="lineNum">    1787 </span>                :       virtual char_type
<span class="lineNum">    1788 </span>                :       do_decimal_point() const
<span class="lineNum">    1789 </span>                :       { return _M_data-&gt;_M_decimal_point; }
<span class="lineNum">    1790 </span>                : 
<span class="lineNum">    1791 </span>                :       /**
<span class="lineNum">    1792 </span>                :        *  @brief  Return thousands separator character.
<span class="lineNum">    1793 </span>                :        *
<span class="lineNum">    1794 </span>                :        *  Returns a char_type to use as a thousands separator.  This function
<span class="lineNum">    1795 </span>                :        *  is a hook for derived classes to change the value returned.
<span class="lineNum">    1796 </span>                :        *
<span class="lineNum">    1797 </span>                :        *  @return  @a char_type representing a thousands separator.
<span class="lineNum">    1798 </span>                :       */
<span class="lineNum">    1799 </span>                :       virtual char_type
<span class="lineNum">    1800 </span>                :       do_thousands_sep() const
<span class="lineNum">    1801 </span>                :       { return _M_data-&gt;_M_thousands_sep; }
<span class="lineNum">    1802 </span>                : 
<span class="lineNum">    1803 </span>                :       /**
<span class="lineNum">    1804 </span>                :        *  @brief  Return grouping specification.
<span class="lineNum">    1805 </span>                :        *
<span class="lineNum">    1806 </span>                :        *  Returns a string representing groupings for the integer part of a
<span class="lineNum">    1807 </span>                :        *  number.  This function is a hook for derived classes to change the
<span class="lineNum">    1808 </span>                :        *  value returned.  @see grouping() for details.
<span class="lineNum">    1809 </span>                :        *
<span class="lineNum">    1810 </span>                :        *  @return  String representing grouping specification.
<span class="lineNum">    1811 </span>                :       */
<span class="lineNum">    1812 </span>                :       virtual string
<span class="lineNum">    1813 </span>                :       do_grouping() const
<span class="lineNum">    1814 </span>                :       { return _M_data-&gt;_M_grouping; }
<span class="lineNum">    1815 </span>                : 
<span class="lineNum">    1816 </span>                :       /**
<span class="lineNum">    1817 </span>                :        *  @brief  Return string representation of bool true.
<span class="lineNum">    1818 </span>                :        *
<span class="lineNum">    1819 </span>                :        *  Returns a string_type containing the text representation for true
<span class="lineNum">    1820 </span>                :        *  bool variables.  This function is a hook for derived classes to
<span class="lineNum">    1821 </span>                :        *  change the value returned.
<span class="lineNum">    1822 </span>                :        *
<span class="lineNum">    1823 </span>                :        *  @return  string_type representing printed form of true.
<span class="lineNum">    1824 </span>                :       */
<span class="lineNum">    1825 </span>                :       virtual string_type
<span class="lineNum">    1826 </span>                :       do_truename() const
<span class="lineNum">    1827 </span>                :       { return _M_data-&gt;_M_truename; }
<span class="lineNum">    1828 </span>                : 
<span class="lineNum">    1829 </span>                :       /**
<span class="lineNum">    1830 </span>                :        *  @brief  Return string representation of bool false.
<span class="lineNum">    1831 </span>                :        *
<span class="lineNum">    1832 </span>                :        *  Returns a string_type containing the text representation for false
<span class="lineNum">    1833 </span>                :        *  bool variables.  This function is a hook for derived classes to
<span class="lineNum">    1834 </span>                :        *  change the value returned.
<span class="lineNum">    1835 </span>                :        *
<span class="lineNum">    1836 </span>                :        *  @return  string_type representing printed form of false.
<span class="lineNum">    1837 </span>                :       */
<span class="lineNum">    1838 </span>                :       virtual string_type
<span class="lineNum">    1839 </span>                :       do_falsename() const
<span class="lineNum">    1840 </span>                :       { return _M_data-&gt;_M_falsename; }
<span class="lineNum">    1841 </span>                : 
<span class="lineNum">    1842 </span>                :       // For use at construction time only.
<span class="lineNum">    1843 </span>                :       void
<span class="lineNum">    1844 </span>                :       _M_initialize_numpunct(__c_locale __cloc = NULL);
<span class="lineNum">    1845 </span>                :     };
<span class="lineNum">    1846 </span>                : 
<span class="lineNum">    1847 </span>                :   template&lt;typename _CharT&gt;
<span class="lineNum">    1848 </span>                :     locale::id numpunct&lt;_CharT&gt;::id;
<span class="lineNum">    1849 </span>                : 
<span class="lineNum">    1850 </span>                :   template&lt;&gt;
<span class="lineNum">    1851 </span>                :     numpunct&lt;char&gt;::~numpunct();
<span class="lineNum">    1852 </span>                : 
<span class="lineNum">    1853 </span>                :   template&lt;&gt;
<span class="lineNum">    1854 </span>                :     void
<span class="lineNum">    1855 </span>                :     numpunct&lt;char&gt;::_M_initialize_numpunct(__c_locale __cloc);
<span class="lineNum">    1856 </span>                : 
<span class="lineNum">    1857 </span>                : #ifdef _GLIBCXX_USE_WCHAR_T
<span class="lineNum">    1858 </span>                :   template&lt;&gt;
<span class="lineNum">    1859 </span>                :     numpunct&lt;wchar_t&gt;::~numpunct();
<span class="lineNum">    1860 </span>                : 
<span class="lineNum">    1861 </span>                :   template&lt;&gt;
<span class="lineNum">    1862 </span>                :     void
<span class="lineNum">    1863 </span>                :     numpunct&lt;wchar_t&gt;::_M_initialize_numpunct(__c_locale __cloc);
<span class="lineNum">    1864 </span>                : #endif
<span class="lineNum">    1865 </span>                : 
<span class="lineNum">    1866 </span>                :   /// class numpunct_byname [22.2.3.2].
<span class="lineNum">    1867 </span>                :   template&lt;typename _CharT&gt;
<span class="lineNum">    1868 </span>                :     class numpunct_byname : public numpunct&lt;_CharT&gt;
<span class="lineNum">    1869 </span>                :     {
<span class="lineNum">    1870 </span>                :     public:
<span class="lineNum">    1871 </span>                :       typedef _CharT                    char_type;
<span class="lineNum">    1872 </span>                :       typedef basic_string&lt;_CharT&gt;        string_type;
<span class="lineNum">    1873 </span>                : 
<span class="lineNum">    1874 </span>                :       explicit
<span class="lineNum">    1875 </span>                :       numpunct_byname(const char* __s, size_t __refs = 0)
<span class="lineNum">    1876 </span>                :       : numpunct&lt;_CharT&gt;(__refs)
<span class="lineNum">    1877 </span>                :       {
<span class="lineNum">    1878 </span>                :         if (__builtin_strcmp(__s, &quot;C&quot;) != 0
<span class="lineNum">    1879 </span>                :             &amp;&amp; __builtin_strcmp(__s, &quot;POSIX&quot;) != 0)
<span class="lineNum">    1880 </span>                :           {
<span class="lineNum">    1881 </span>                :             __c_locale __tmp;
<span class="lineNum">    1882 </span>                :             this-&gt;_S_create_c_locale(__tmp, __s);
<span class="lineNum">    1883 </span>                :             this-&gt;_M_initialize_numpunct(__tmp);
<span class="lineNum">    1884 </span>                :             this-&gt;_S_destroy_c_locale(__tmp);
<span class="lineNum">    1885 </span>                :           }
<span class="lineNum">    1886 </span>                :       }
<span class="lineNum">    1887 </span>                : 
<span class="lineNum">    1888 </span>                :     protected:
<span class="lineNum">    1889 </span>                :       virtual
<span class="lineNum">    1890 </span>                :       ~numpunct_byname() { }
<span class="lineNum">    1891 </span>                :     };
<span class="lineNum">    1892 </span>                : 
<span class="lineNum">    1893 </span>                : _GLIBCXX_BEGIN_LDBL_NAMESPACE
<span class="lineNum">    1894 </span>                : 
<span class="lineNum">    1895 </span>                :   /**
<span class="lineNum">    1896 </span>                :    *  @brief  Facet for parsing number strings.
<span class="lineNum">    1897 </span>                :    *
<span class="lineNum">    1898 </span>                :    *  This facet encapsulates the code to parse and return a number
<span class="lineNum">    1899 </span>                :    *  from a string.  It is used by the istream numeric extraction
<span class="lineNum">    1900 </span>                :    *  operators.
<span class="lineNum">    1901 </span>                :    *
<span class="lineNum">    1902 </span>                :    *  The num_get template uses protected virtual functions to provide the
<span class="lineNum">    1903 </span>                :    *  actual results.  The public accessors forward the call to the virtual
<span class="lineNum">    1904 </span>                :    *  functions.  These virtual functions are hooks for developers to
<span class="lineNum">    1905 </span>                :    *  implement the behavior they require from the num_get facet.
<span class="lineNum">    1906 </span>                :   */
<span class="lineNum">    1907 </span>                :   template&lt;typename _CharT, typename _InIter&gt;
<span class="lineNum">    1908 </span>                :     class num_get : public locale::facet
<span class="lineNum">    1909 </span>                :     {
<span class="lineNum">    1910 </span>                :     public:
<span class="lineNum">    1911 </span>                :       // Types:
<span class="lineNum">    1912 </span>                :       //@{
<span class="lineNum">    1913 </span>                :       /// Public typedefs
<span class="lineNum">    1914 </span>                :       typedef _CharT                    char_type;
<span class="lineNum">    1915 </span>                :       typedef _InIter                   iter_type;
<span class="lineNum">    1916 </span>                :       //@}
<span class="lineNum">    1917 </span>                : 
<span class="lineNum">    1918 </span>                :       /// Numpunct facet id.
<span class="lineNum">    1919 </span>                :       static locale::id                 id;
<span class="lineNum">    1920 </span>                : 
<span class="lineNum">    1921 </span>                :       /**
<span class="lineNum">    1922 </span>                :        *  @brief  Constructor performs initialization.
<span class="lineNum">    1923 </span>                :        *
<span class="lineNum">    1924 </span>                :        *  This is the constructor provided by the standard.
<span class="lineNum">    1925 </span>                :        *
<span class="lineNum">    1926 </span>                :        *  @param refs  Passed to the base facet class.
<span class="lineNum">    1927 </span>                :       */
<span class="lineNum">    1928 </span>                :       explicit
<span class="lineNum">    1929 </span>                :       num_get(size_t __refs = 0) : facet(__refs) { }
<span class="lineNum">    1930 </span>                : 
<span class="lineNum">    1931 </span>                :       /**
<span class="lineNum">    1932 </span>                :        *  @brief  Numeric parsing.
<span class="lineNum">    1933 </span>                :        *
<span class="lineNum">    1934 </span>                :        *  Parses the input stream into the bool @a v.  It does so by calling
<span class="lineNum">    1935 </span>                :        *  num_get::do_get().
<span class="lineNum">    1936 </span>                :        *
<span class="lineNum">    1937 </span>                :        *  If ios_base::boolalpha is set, attempts to read
<span class="lineNum">    1938 </span>                :        *  ctype&lt;CharT&gt;::truename() or ctype&lt;CharT&gt;::falsename().  Sets
<span class="lineNum">    1939 </span>                :        *  @a v to true or false if successful.  Sets err to
<span class="lineNum">    1940 </span>                :        *  ios_base::failbit if reading the string fails.  Sets err to
<span class="lineNum">    1941 </span>                :        *  ios_base::eofbit if the stream is emptied.
<span class="lineNum">    1942 </span>                :        *
<span class="lineNum">    1943 </span>                :        *  If ios_base::boolalpha is not set, proceeds as with reading a long,
<span class="lineNum">    1944 </span>                :        *  except if the value is 1, sets @a v to true, if the value is 0, sets
<span class="lineNum">    1945 </span>                :        *  @a v to false, and otherwise set err to ios_base::failbit.
<span class="lineNum">    1946 </span>                :        *
<span class="lineNum">    1947 </span>                :        *  @param  in  Start of input stream.
<span class="lineNum">    1948 </span>                :        *  @param  end  End of input stream.
<span class="lineNum">    1949 </span>                :        *  @param  io  Source of locale and flags.
<span class="lineNum">    1950 </span>                :        *  @param  err  Error flags to set.
<span class="lineNum">    1951 </span>                :        *  @param  v  Value to format and insert.
<span class="lineNum">    1952 </span>                :        *  @return  Iterator after reading.
<span class="lineNum">    1953 </span>                :       */
<span class="lineNum">    1954 </span>                :       iter_type
<span class="lineNum">    1955 </span>                :       get(iter_type __in, iter_type __end, ios_base&amp; __io,
<span class="lineNum">    1956 </span>                :           ios_base::iostate&amp; __err, bool&amp; __v) const
<span class="lineNum">    1957 </span>                :       { return this-&gt;do_get(__in, __end, __io, __err, __v); }
<span class="lineNum">    1958 </span>                : 
<span class="lineNum">    1959 </span>                :       //@{
<span class="lineNum">    1960 </span>                :       /**
<span class="lineNum">    1961 </span>                :        *  @brief  Numeric parsing.
<span class="lineNum">    1962 </span>                :        *
<span class="lineNum">    1963 </span>                :        *  Parses the input stream into the integral variable @a v.  It does so
<span class="lineNum">    1964 </span>                :        *  by calling num_get::do_get().
<span class="lineNum">    1965 </span>                :        *
<span class="lineNum">    1966 </span>                :        *  Parsing is affected by the flag settings in @a io.
<span class="lineNum">    1967 </span>                :        *
<span class="lineNum">    1968 </span>                :        *  The basic parse is affected by the value of io.flags() &amp;
<span class="lineNum">    1969 </span>                :        *  ios_base::basefield.  If equal to ios_base::oct, parses like the
<span class="lineNum">    1970 </span>                :        *  scanf %o specifier.  Else if equal to ios_base::hex, parses like %X
<span class="lineNum">    1971 </span>                :        *  specifier.  Else if basefield equal to 0, parses like the %i
<span class="lineNum">    1972 </span>                :        *  specifier.  Otherwise, parses like %d for signed and %u for unsigned
<span class="lineNum">    1973 </span>                :        *  types.  The matching type length modifier is also used.
<span class="lineNum">    1974 </span>                :        *
<span class="lineNum">    1975 </span>                :        *  Digit grouping is interpreted according to numpunct::grouping() and
<span class="lineNum">    1976 </span>                :        *  numpunct::thousands_sep().  If the pattern of digit groups isn't
<span class="lineNum">    1977 </span>                :        *  consistent, sets err to ios_base::failbit.
<span class="lineNum">    1978 </span>                :        *
<span class="lineNum">    1979 </span>                :        *  If parsing the string yields a valid value for @a v, @a v is set.
<span class="lineNum">    1980 </span>                :        *  Otherwise, sets err to ios_base::failbit and leaves @a v unaltered.
<span class="lineNum">    1981 </span>                :        *  Sets err to ios_base::eofbit if the stream is emptied.
<span class="lineNum">    1982 </span>                :        *
<span class="lineNum">    1983 </span>                :        *  @param  in  Start of input stream.
<span class="lineNum">    1984 </span>                :        *  @param  end  End of input stream.
<span class="lineNum">    1985 </span>                :        *  @param  io  Source of locale and flags.
<span class="lineNum">    1986 </span>                :        *  @param  err  Error flags to set.
<span class="lineNum">    1987 </span>                :        *  @param  v  Value to format and insert.
<span class="lineNum">    1988 </span>                :        *  @return  Iterator after reading.
<span class="lineNum">    1989 </span>                :       */
<span class="lineNum">    1990 </span>                :       iter_type
<span class="lineNum">    1991 </span>                :       get(iter_type __in, iter_type __end, ios_base&amp; __io,
<span class="lineNum">    1992 </span>                :           ios_base::iostate&amp; __err, long&amp; __v) const
<span class="lineNum">    1993 </span>                :       { return this-&gt;do_get(__in, __end, __io, __err, __v); }
<span class="lineNum">    1994 </span>                : 
<span class="lineNum">    1995 </span>                :       iter_type
<span class="lineNum">    1996 </span>                :       get(iter_type __in, iter_type __end, ios_base&amp; __io,
<span class="lineNum">    1997 </span>                :           ios_base::iostate&amp; __err, unsigned short&amp; __v) const
<span class="lineNum">    1998 </span>                :       { return this-&gt;do_get(__in, __end, __io, __err, __v); }
<span class="lineNum">    1999 </span>                : 
<span class="lineNum">    2000 </span>                :       iter_type
<span class="lineNum">    2001 </span>                :       get(iter_type __in, iter_type __end, ios_base&amp; __io,
<span class="lineNum">    2002 </span>                :           ios_base::iostate&amp; __err, unsigned int&amp; __v)   const
<span class="lineNum">    2003 </span>                :       { return this-&gt;do_get(__in, __end, __io, __err, __v); }
<span class="lineNum">    2004 </span>                : 
<span class="lineNum">    2005 </span>                :       iter_type
<span class="lineNum">    2006 </span>                :       get(iter_type __in, iter_type __end, ios_base&amp; __io,
<span class="lineNum">    2007 </span>                :           ios_base::iostate&amp; __err, unsigned long&amp; __v)  const
<span class="lineNum">    2008 </span>                :       { return this-&gt;do_get(__in, __end, __io, __err, __v); }
<span class="lineNum">    2009 </span>                : 
<span class="lineNum">    2010 </span>                : #ifdef _GLIBCXX_USE_LONG_LONG
<span class="lineNum">    2011 </span>                :       iter_type
<span class="lineNum">    2012 </span>                :       get(iter_type __in, iter_type __end, ios_base&amp; __io,
<span class="lineNum">    2013 </span>                :           ios_base::iostate&amp; __err, long long&amp; __v) const
<span class="lineNum">    2014 </span>                :       { return this-&gt;do_get(__in, __end, __io, __err, __v); }
<span class="lineNum">    2015 </span>                : 
<span class="lineNum">    2016 </span>                :       iter_type
<span class="lineNum">    2017 </span>                :       get(iter_type __in, iter_type __end, ios_base&amp; __io,
<span class="lineNum">    2018 </span>                :           ios_base::iostate&amp; __err, unsigned long long&amp; __v)  const
<span class="lineNum">    2019 </span>                :       { return this-&gt;do_get(__in, __end, __io, __err, __v); }
<span class="lineNum">    2020 </span>                : #endif
<span class="lineNum">    2021 </span>                :       //@}
<span class="lineNum">    2022 </span>                : 
<span class="lineNum">    2023 </span>                :       //@{
<span class="lineNum">    2024 </span>                :       /**
<span class="lineNum">    2025 </span>                :        *  @brief  Numeric parsing.
<span class="lineNum">    2026 </span>                :        *
<span class="lineNum">    2027 </span>                :        *  Parses the input stream into the integral variable @a v.  It does so
<span class="lineNum">    2028 </span>                :        *  by calling num_get::do_get().
<span class="lineNum">    2029 </span>                :        *
<span class="lineNum">    2030 </span>                :        *  The input characters are parsed like the scanf %g specifier.  The
<span class="lineNum">    2031 </span>                :        *  matching type length modifier is also used.
<span class="lineNum">    2032 </span>                :        *
<span class="lineNum">    2033 </span>                :        *  The decimal point character used is numpunct::decimal_point().
<span class="lineNum">    2034 </span>                :        *  Digit grouping is interpreted according to numpunct::grouping() and
<span class="lineNum">    2035 </span>                :        *  numpunct::thousands_sep().  If the pattern of digit groups isn't
<span class="lineNum">    2036 </span>                :        *  consistent, sets err to ios_base::failbit.
<span class="lineNum">    2037 </span>                :        *
<span class="lineNum">    2038 </span>                :        *  If parsing the string yields a valid value for @a v, @a v is set.
<span class="lineNum">    2039 </span>                :        *  Otherwise, sets err to ios_base::failbit and leaves @a v unaltered.
<span class="lineNum">    2040 </span>                :        *  Sets err to ios_base::eofbit if the stream is emptied.
<span class="lineNum">    2041 </span>                :        *
<span class="lineNum">    2042 </span>                :        *  @param  in  Start of input stream.
<span class="lineNum">    2043 </span>                :        *  @param  end  End of input stream.
<span class="lineNum">    2044 </span>                :        *  @param  io  Source of locale and flags.
<span class="lineNum">    2045 </span>                :        *  @param  err  Error flags to set.
<span class="lineNum">    2046 </span>                :        *  @param  v  Value to format and insert.
<span class="lineNum">    2047 </span>                :        *  @return  Iterator after reading.
<span class="lineNum">    2048 </span>                :       */
<span class="lineNum">    2049 </span>                :       iter_type
<span class="lineNum">    2050 </span>                :       get(iter_type __in, iter_type __end, ios_base&amp; __io,
<span class="lineNum">    2051 </span>                :           ios_base::iostate&amp; __err, float&amp; __v) const
<span class="lineNum">    2052 </span>                :       { return this-&gt;do_get(__in, __end, __io, __err, __v); }
<span class="lineNum">    2053 </span>                : 
<span class="lineNum">    2054 </span>                :       iter_type
<span class="lineNum">    2055 </span>                :       get(iter_type __in, iter_type __end, ios_base&amp; __io,
<span class="lineNum">    2056 </span>                :           ios_base::iostate&amp; __err, double&amp; __v) const
<span class="lineNum">    2057 </span>                :       { return this-&gt;do_get(__in, __end, __io, __err, __v); }
<span class="lineNum">    2058 </span>                : 
<span class="lineNum">    2059 </span>                :       iter_type
<span class="lineNum">    2060 </span>                :       get(iter_type __in, iter_type __end, ios_base&amp; __io,
<span class="lineNum">    2061 </span>                :           ios_base::iostate&amp; __err, long double&amp; __v) const
<span class="lineNum">    2062 </span>                :       { return this-&gt;do_get(__in, __end, __io, __err, __v); }
<span class="lineNum">    2063 </span>                :       //@}
<span class="lineNum">    2064 </span>                : 
<span class="lineNum">    2065 </span>                :       /**
<span class="lineNum">    2066 </span>                :        *  @brief  Numeric parsing.
<span class="lineNum">    2067 </span>                :        *
<span class="lineNum">    2068 </span>                :        *  Parses the input stream into the pointer variable @a v.  It does so
<span class="lineNum">    2069 </span>                :        *  by calling num_get::do_get().
<span class="lineNum">    2070 </span>                :        *
<span class="lineNum">    2071 </span>                :        *  The input characters are parsed like the scanf %p specifier.
<span class="lineNum">    2072 </span>                :        *
<span class="lineNum">    2073 </span>                :        *  Digit grouping is interpreted according to numpunct::grouping() and
<span class="lineNum">    2074 </span>                :        *  numpunct::thousands_sep().  If the pattern of digit groups isn't
<span class="lineNum">    2075 </span>                :        *  consistent, sets err to ios_base::failbit.
<span class="lineNum">    2076 </span>                :        *
<span class="lineNum">    2077 </span>                :        *  Note that the digit grouping effect for pointers is a bit ambiguous
<span class="lineNum">    2078 </span>                :        *  in the standard and shouldn't be relied on.  See DR 344.
<span class="lineNum">    2079 </span>                :        *
<span class="lineNum">    2080 </span>                :        *  If parsing the string yields a valid value for @a v, @a v is set.
<span class="lineNum">    2081 </span>                :        *  Otherwise, sets err to ios_base::failbit and leaves @a v unaltered.
<span class="lineNum">    2082 </span>                :        *  Sets err to ios_base::eofbit if the stream is emptied.
<span class="lineNum">    2083 </span>                :        *
<span class="lineNum">    2084 </span>                :        *  @param  in  Start of input stream.
<span class="lineNum">    2085 </span>                :        *  @param  end  End of input stream.
<span class="lineNum">    2086 </span>                :        *  @param  io  Source of locale and flags.
<span class="lineNum">    2087 </span>                :        *  @param  err  Error flags to set.
<span class="lineNum">    2088 </span>                :        *  @param  v  Value to format and insert.
<span class="lineNum">    2089 </span>                :        *  @return  Iterator after reading.
<span class="lineNum">    2090 </span>                :       */
<span class="lineNum">    2091 </span>                :       iter_type
<span class="lineNum">    2092 </span>                :       get(iter_type __in, iter_type __end, ios_base&amp; __io,
<span class="lineNum">    2093 </span>                :           ios_base::iostate&amp; __err, void*&amp; __v) const
<span class="lineNum">    2094 </span>                :       { return this-&gt;do_get(__in, __end, __io, __err, __v); }
<span class="lineNum">    2095 </span>                : 
<span class="lineNum">    2096 </span>                :     protected:
<span class="lineNum">    2097 </span>                :       /// Destructor.
<span class="lineNum">    2098 </span>                :       virtual ~num_get() { }
<span class="lineNum">    2099 </span>                : 
<span class="lineNum">    2100 </span>                :       iter_type
<span class="lineNum">    2101 </span>                :       _M_extract_float(iter_type, iter_type, ios_base&amp;, ios_base::iostate&amp;,
<span class="lineNum">    2102 </span>                :                        string&amp;) const;
<span class="lineNum">    2103 </span>                : 
<span class="lineNum">    2104 </span>                :       template&lt;typename _ValueT&gt;
<span class="lineNum">    2105 </span>                :         iter_type
<span class="lineNum">    2106 </span>                :         _M_extract_int(iter_type, iter_type, ios_base&amp;, ios_base::iostate&amp;,
<span class="lineNum">    2107 </span>                :                        _ValueT&amp;) const;
<span class="lineNum">    2108 </span>                : 
<span class="lineNum">    2109 </span>                :       template&lt;typename _CharT2&gt;
<span class="lineNum">    2110 </span>                :       typename __gnu_cxx::__enable_if&lt;__is_char&lt;_CharT2&gt;::__value, int&gt;::__type
<span class="lineNum">    2111 </span>                :         _M_find(const _CharT2*, size_t __len, _CharT2 __c) const
<span class="lineNum">    2112 </span>                :         {
<span class="lineNum">    2113 </span>                :           int __ret = -1;
<span class="lineNum">    2114 </span>                :           if (__len &lt;= 10)
<span class="lineNum">    2115 </span>                :             {
<span class="lineNum">    2116 </span>                :               if (__c &gt;= _CharT2('0') &amp;&amp; __c &lt; _CharT2(_CharT2('0') + __len))
<span class="lineNum">    2117 </span>                :                 __ret = __c - _CharT2('0');
<span class="lineNum">    2118 </span>                :             }
<span class="lineNum">    2119 </span>                :           else
<span class="lineNum">    2120 </span>                :             {
<span class="lineNum">    2121 </span>                :               if (__c &gt;= _CharT2('0') &amp;&amp; __c &lt;= _CharT2('9'))
<span class="lineNum">    2122 </span>                :                 __ret = __c - _CharT2('0');
<span class="lineNum">    2123 </span>                :               else if (__c &gt;= _CharT2('a') &amp;&amp; __c &lt;= _CharT2('f'))
<span class="lineNum">    2124 </span>                :                 __ret = 10 + (__c - _CharT2('a'));
<span class="lineNum">    2125 </span>                :               else if (__c &gt;= _CharT2('A') &amp;&amp; __c &lt;= _CharT2('F'))
<span class="lineNum">    2126 </span>                :                 __ret = 10 + (__c - _CharT2('A'));
<span class="lineNum">    2127 </span>                :             }
<span class="lineNum">    2128 </span>                :           return __ret;
<span class="lineNum">    2129 </span>                :         }
<span class="lineNum">    2130 </span>                : 
<span class="lineNum">    2131 </span>                :       template&lt;typename _CharT2&gt;
<span class="lineNum">    2132 </span>                :       typename __gnu_cxx::__enable_if&lt;!__is_char&lt;_CharT2&gt;::__value, 
<span class="lineNum">    2133 </span>                :                                       int&gt;::__type
<span class="lineNum">    2134 </span>                :         _M_find(const _CharT2* __zero, size_t __len, _CharT2 __c) const
<span class="lineNum">    2135 </span>                :         {
<span class="lineNum">    2136 </span>                :           int __ret = -1;
<span class="lineNum">    2137 </span>                :           const char_type* __q = char_traits&lt;_CharT2&gt;::find(__zero, __len, __c);
<span class="lineNum">    2138 </span>                :           if (__q)
<span class="lineNum">    2139 </span>                :             {
<span class="lineNum">    2140 </span>                :               __ret = __q - __zero;
<span class="lineNum">    2141 </span>                :               if (__ret &gt; 15)
<span class="lineNum">    2142 </span>                :                 __ret -= 6;
<span class="lineNum">    2143 </span>                :             }
<span class="lineNum">    2144 </span>                :           return __ret;
<span class="lineNum">    2145 </span>                :         }
<span class="lineNum">    2146 </span>                : 
<span class="lineNum">    2147 </span>                :       //@{
<span class="lineNum">    2148 </span>                :       /**
<span class="lineNum">    2149 </span>                :        *  @brief  Numeric parsing.
<span class="lineNum">    2150 </span>                :        *
<span class="lineNum">    2151 </span>                :        *  Parses the input stream into the variable @a v.  This function is a
<span class="lineNum">    2152 </span>                :        *  hook for derived classes to change the value returned.  @see get()
<span class="lineNum">    2153 </span>                :        *  for more details.
<span class="lineNum">    2154 </span>                :        *
<span class="lineNum">    2155 </span>                :        *  @param  in  Start of input stream.
<span class="lineNum">    2156 </span>                :        *  @param  end  End of input stream.
<span class="lineNum">    2157 </span>                :        *  @param  io  Source of locale and flags.
<span class="lineNum">    2158 </span>                :        *  @param  err  Error flags to set.
<span class="lineNum">    2159 </span>                :        *  @param  v  Value to format and insert.
<span class="lineNum">    2160 </span>                :        *  @return  Iterator after reading.
<span class="lineNum">    2161 </span>                :       */
<span class="lineNum">    2162 </span>                :       virtual iter_type
<span class="lineNum">    2163 </span>                :       do_get(iter_type, iter_type, ios_base&amp;, ios_base::iostate&amp;, bool&amp;) const;
<span class="lineNum">    2164 </span>                : 
<span class="lineNum">    2165 </span>                :       virtual iter_type
<span class="lineNum">    2166 </span>                :       do_get(iter_type __beg, iter_type __end, ios_base&amp; __io,
<span class="lineNum">    2167 </span>                :              ios_base::iostate&amp; __err, long&amp; __v) const
<span class="lineNum">    2168 </span>                :       { return _M_extract_int(__beg, __end, __io, __err, __v); }
<span class="lineNum">    2169 </span>                : 
<span class="lineNum">    2170 </span>                :       virtual iter_type
<span class="lineNum">    2171 </span>                :       do_get(iter_type __beg, iter_type __end, ios_base&amp; __io,
<span class="lineNum">    2172 </span>                :              ios_base::iostate&amp; __err, unsigned short&amp; __v) const
<span class="lineNum">    2173 </span>                :       { return _M_extract_int(__beg, __end, __io, __err, __v); }
<span class="lineNum">    2174 </span>                : 
<span class="lineNum">    2175 </span>                :       virtual iter_type
<span class="lineNum">    2176 </span>                :       do_get(iter_type __beg, iter_type __end, ios_base&amp; __io,
<span class="lineNum">    2177 </span>                :              ios_base::iostate&amp; __err, unsigned int&amp; __v) const
<span class="lineNum">    2178 </span>                :       { return _M_extract_int(__beg, __end, __io, __err, __v); }
<span class="lineNum">    2179 </span>                : 
<span class="lineNum">    2180 </span>                :       virtual iter_type
<span class="lineNum">    2181 </span>                :       do_get(iter_type __beg, iter_type __end, ios_base&amp; __io,
<span class="lineNum">    2182 </span>                :              ios_base::iostate&amp; __err, unsigned long&amp; __v) const
<span class="lineNum">    2183 </span>                :       { return _M_extract_int(__beg, __end, __io, __err, __v); }
<span class="lineNum">    2184 </span>                : 
<span class="lineNum">    2185 </span>                : #ifdef _GLIBCXX_USE_LONG_LONG
<span class="lineNum">    2186 </span>                :       virtual iter_type
<span class="lineNum">    2187 </span>                :       do_get(iter_type __beg, iter_type __end, ios_base&amp; __io,
<span class="lineNum">    2188 </span>                :              ios_base::iostate&amp; __err, long long&amp; __v) const
<span class="lineNum">    2189 </span>                :       { return _M_extract_int(__beg, __end, __io, __err, __v); }        
<span class="lineNum">    2190 </span>                : 
<span class="lineNum">    2191 </span>                :       virtual iter_type
<span class="lineNum">    2192 </span>                :       do_get(iter_type __beg, iter_type __end, ios_base&amp; __io,
<span class="lineNum">    2193 </span>                :              ios_base::iostate&amp; __err, unsigned long long&amp; __v) const
<span class="lineNum">    2194 </span>                :       { return _M_extract_int(__beg, __end, __io, __err, __v); }
<span class="lineNum">    2195 </span>                : #endif
<span class="lineNum">    2196 </span>                : 
<span class="lineNum">    2197 </span>                :       virtual iter_type
<span class="lineNum">    2198 </span>                :       do_get(iter_type, iter_type, ios_base&amp;, ios_base::iostate&amp; __err,
<span class="lineNum">    2199 </span>                :              float&amp;) const;
<span class="lineNum">    2200 </span>                : 
<span class="lineNum">    2201 </span>                :       virtual iter_type
<span class="lineNum">    2202 </span>                :       do_get(iter_type, iter_type, ios_base&amp;, ios_base::iostate&amp; __err,
<span class="lineNum">    2203 </span>                :              double&amp;) const;
<span class="lineNum">    2204 </span>                : 
<span class="lineNum">    2205 </span>                :       // XXX GLIBCXX_ABI Deprecated
<span class="lineNum">    2206 </span>                : #if defined _GLIBCXX_LONG_DOUBLE_COMPAT &amp;&amp; defined __LONG_DOUBLE_128__
<span class="lineNum">    2207 </span>                :       virtual iter_type
<span class="lineNum">    2208 </span>                :       __do_get(iter_type, iter_type, ios_base&amp;, ios_base::iostate&amp; __err,
<span class="lineNum">    2209 </span>                :                double&amp;) const;
<span class="lineNum">    2210 </span>                : #else
<span class="lineNum">    2211 </span>                :       virtual iter_type
<span class="lineNum">    2212 </span>                :       do_get(iter_type, iter_type, ios_base&amp;, ios_base::iostate&amp; __err,
<span class="lineNum">    2213 </span>                :              long double&amp;) const;
<span class="lineNum">    2214 </span>                : #endif
<span class="lineNum">    2215 </span>                : 
<span class="lineNum">    2216 </span>                :       virtual iter_type
<span class="lineNum">    2217 </span>                :       do_get(iter_type, iter_type, ios_base&amp;, ios_base::iostate&amp; __err,
<span class="lineNum">    2218 </span>                :              void*&amp;) const;
<span class="lineNum">    2219 </span>                : 
<span class="lineNum">    2220 </span>                :       // XXX GLIBCXX_ABI Deprecated
<span class="lineNum">    2221 </span>                : #if defined _GLIBCXX_LONG_DOUBLE_COMPAT &amp;&amp; defined __LONG_DOUBLE_128__
<span class="lineNum">    2222 </span>                :       virtual iter_type
<span class="lineNum">    2223 </span>                :       do_get(iter_type, iter_type, ios_base&amp;, ios_base::iostate&amp; __err,
<span class="lineNum">    2224 </span>                :              long double&amp;) const;
<span class="lineNum">    2225 </span>                : #endif
<span class="lineNum">    2226 </span>                :       //@}
<span class="lineNum">    2227 </span>                :     };
<span class="lineNum">    2228 </span>                : 
<span class="lineNum">    2229 </span>                :   template&lt;typename _CharT, typename _InIter&gt;
<span class="lineNum">    2230 </span>                :     locale::id num_get&lt;_CharT, _InIter&gt;::id;
<span class="lineNum">    2231 </span>                : 
<span class="lineNum">    2232 </span>                : 
<span class="lineNum">    2233 </span>                :   /**
<span class="lineNum">    2234 </span>                :    *  @brief  Facet for converting numbers to strings.
<span class="lineNum">    2235 </span>                :    *
<span class="lineNum">    2236 </span>                :    *  This facet encapsulates the code to convert a number to a string.  It is
<span class="lineNum">    2237 </span>                :    *  used by the ostream numeric insertion operators.
<span class="lineNum">    2238 </span>                :    *
<span class="lineNum">    2239 </span>                :    *  The num_put template uses protected virtual functions to provide the
<span class="lineNum">    2240 </span>                :    *  actual results.  The public accessors forward the call to the virtual
<span class="lineNum">    2241 </span>                :    *  functions.  These virtual functions are hooks for developers to
<span class="lineNum">    2242 </span>                :    *  implement the behavior they require from the num_put facet.
<span class="lineNum">    2243 </span>                :   */
<span class="lineNum">    2244 </span>                :   template&lt;typename _CharT, typename _OutIter&gt;
<span class="lineNum">    2245 </span>                :     class num_put : public locale::facet
<span class="lineNum">    2246 </span>                :     {
<span class="lineNum">    2247 </span>                :     public:
<span class="lineNum">    2248 </span>                :       // Types:
<span class="lineNum">    2249 </span>                :       //@{
<span class="lineNum">    2250 </span>                :       /// Public typedefs
<span class="lineNum">    2251 </span>                :       typedef _CharT            char_type;
<span class="lineNum">    2252 </span>                :       typedef _OutIter          iter_type;
<span class="lineNum">    2253 </span>                :       //@}
<span class="lineNum">    2254 </span>                : 
<span class="lineNum">    2255 </span>                :       /// Numpunct facet id.
<span class="lineNum">    2256 </span>                :       static locale::id         id;
<span class="lineNum">    2257 </span>                : 
<span class="lineNum">    2258 </span>                :       /**
<span class="lineNum">    2259 </span>                :        *  @brief  Constructor performs initialization.
<span class="lineNum">    2260 </span>                :        *
<span class="lineNum">    2261 </span>                :        *  This is the constructor provided by the standard.
<span class="lineNum">    2262 </span>                :        *
<span class="lineNum">    2263 </span>                :        *  @param refs  Passed to the base facet class.
<span class="lineNum">    2264 </span>                :       */
<span class="lineNum">    2265 </span>                :       explicit
<span class="lineNum">    2266 </span>                :       num_put(size_t __refs = 0) : facet(__refs) { }
<span class="lineNum">    2267 </span>                : 
<span class="lineNum">    2268 </span>                :       /**
<span class="lineNum">    2269 </span>                :        *  @brief  Numeric formatting.
<span class="lineNum">    2270 </span>                :        *
<span class="lineNum">    2271 </span>                :        *  Formats the boolean @a v and inserts it into a stream.  It does so
<span class="lineNum">    2272 </span>                :        *  by calling num_put::do_put().
<span class="lineNum">    2273 </span>                :        *
<span class="lineNum">    2274 </span>                :        *  If ios_base::boolalpha is set, writes ctype&lt;CharT&gt;::truename() or
<span class="lineNum">    2275 </span>                :        *  ctype&lt;CharT&gt;::falsename().  Otherwise formats @a v as an int.
<span class="lineNum">    2276 </span>                :        *
<span class="lineNum">    2277 </span>                :        *  @param  s  Stream to write to.
<span class="lineNum">    2278 </span>                :        *  @param  io  Source of locale and flags.
<span class="lineNum">    2279 </span>                :        *  @param  fill  Char_type to use for filling.
<span class="lineNum">    2280 </span>                :        *  @param  v  Value to format and insert.
<span class="lineNum">    2281 </span>                :        *  @return  Iterator after writing.
<span class="lineNum">    2282 </span>                :       */
<span class="lineNum">    2283 </span>                :       iter_type
<span class="lineNum">    2284 </span>                :       put(iter_type __s, ios_base&amp; __f, char_type __fill, bool __v) const
<span class="lineNum">    2285 </span>                :       { return this-&gt;do_put(__s, __f, __fill, __v); }
<span class="lineNum">    2286 </span>                : 
<span class="lineNum">    2287 </span>                :       //@{
<span class="lineNum">    2288 </span>                :       /**
<span class="lineNum">    2289 </span>                :        *  @brief  Numeric formatting.
<span class="lineNum">    2290 </span>                :        *
<span class="lineNum">    2291 </span>                :        *  Formats the integral value @a v and inserts it into a
<span class="lineNum">    2292 </span>                :        *  stream.  It does so by calling num_put::do_put().
<span class="lineNum">    2293 </span>                :        *
<span class="lineNum">    2294 </span>                :        *  Formatting is affected by the flag settings in @a io.
<span class="lineNum">    2295 </span>                :        *
<span class="lineNum">    2296 </span>                :        *  The basic format is affected by the value of io.flags() &amp;
<span class="lineNum">    2297 </span>                :        *  ios_base::basefield.  If equal to ios_base::oct, formats like the
<span class="lineNum">    2298 </span>                :        *  printf %o specifier.  Else if equal to ios_base::hex, formats like
<span class="lineNum">    2299 </span>                :        *  %x or %X with ios_base::uppercase unset or set respectively.
<span class="lineNum">    2300 </span>                :        *  Otherwise, formats like %d, %ld, %lld for signed and %u, %lu, %llu
<span class="lineNum">    2301 </span>                :        *  for unsigned values.  Note that if both oct and hex are set, neither
<span class="lineNum">    2302 </span>                :        *  will take effect.
<span class="lineNum">    2303 </span>                :        *
<span class="lineNum">    2304 </span>                :        *  If ios_base::showpos is set, '+' is output before positive values.
<span class="lineNum">    2305 </span>                :        *  If ios_base::showbase is set, '0' precedes octal values (except 0)
<span class="lineNum">    2306 </span>                :        *  and '0[xX]' precedes hex values.
<span class="lineNum">    2307 </span>                :        *
<span class="lineNum">    2308 </span>                :        *  Thousands separators are inserted according to numpunct::grouping()
<span class="lineNum">    2309 </span>                :        *  and numpunct::thousands_sep().  The decimal point character used is
<span class="lineNum">    2310 </span>                :        *  numpunct::decimal_point().
<span class="lineNum">    2311 </span>                :        *
<span class="lineNum">    2312 </span>                :        *  If io.width() is non-zero, enough @a fill characters are inserted to
<span class="lineNum">    2313 </span>                :        *  make the result at least that wide.  If
<span class="lineNum">    2314 </span>                :        *  (io.flags() &amp; ios_base::adjustfield) == ios_base::left, result is
<span class="lineNum">    2315 </span>                :        *  padded at the end.  If ios_base::internal, then padding occurs
<span class="lineNum">    2316 </span>                :        *  immediately after either a '+' or '-' or after '0x' or '0X'.
<span class="lineNum">    2317 </span>                :        *  Otherwise, padding occurs at the beginning.
<span class="lineNum">    2318 </span>                :        *
<span class="lineNum">    2319 </span>                :        *  @param  s  Stream to write to.
<span class="lineNum">    2320 </span>                :        *  @param  io  Source of locale and flags.
<span class="lineNum">    2321 </span>                :        *  @param  fill  Char_type to use for filling.
<span class="lineNum">    2322 </span>                :        *  @param  v  Value to format and insert.
<span class="lineNum">    2323 </span>                :        *  @return  Iterator after writing.
<span class="lineNum">    2324 </span>                :       */
<span class="lineNum">    2325 </span>                :       iter_type
<span class="lineNum">    2326 </span>                :       put(iter_type __s, ios_base&amp; __f, char_type __fill, long __v) const
<span class="lineNum">    2327 </span>                :       { return this-&gt;do_put(__s, __f, __fill, __v); }
<span class="lineNum">    2328 </span>                : 
<span class="lineNum">    2329 </span>                :       iter_type
<span class="lineNum">    2330 </span>                :       put(iter_type __s, ios_base&amp; __f, char_type __fill,
<span class="lineNum">    2331 </span>                :           unsigned long __v) const
<span class="lineNum">    2332 </span>                :       { return this-&gt;do_put(__s, __f, __fill, __v); }
<span class="lineNum">    2333 </span>                : 
<span class="lineNum">    2334 </span>                : #ifdef _GLIBCXX_USE_LONG_LONG
<span class="lineNum">    2335 </span>                :       iter_type
<span class="lineNum">    2336 </span>                :       put(iter_type __s, ios_base&amp; __f, char_type __fill, long long __v) const
<span class="lineNum">    2337 </span>                :       { return this-&gt;do_put(__s, __f, __fill, __v); }
<span class="lineNum">    2338 </span>                : 
<span class="lineNum">    2339 </span>                :       iter_type
<span class="lineNum">    2340 </span>                :       put(iter_type __s, ios_base&amp; __f, char_type __fill,
<span class="lineNum">    2341 </span>                :           unsigned long long __v) const
<span class="lineNum">    2342 </span>                :       { return this-&gt;do_put(__s, __f, __fill, __v); }
<span class="lineNum">    2343 </span>                : #endif
<span class="lineNum">    2344 </span>                :       //@}
<span class="lineNum">    2345 </span>                : 
<span class="lineNum">    2346 </span>                :       //@{
<span class="lineNum">    2347 </span>                :       /**
<span class="lineNum">    2348 </span>                :        *  @brief  Numeric formatting.
<span class="lineNum">    2349 </span>                :        *
<span class="lineNum">    2350 </span>                :        *  Formats the floating point value @a v and inserts it into a stream.
<span class="lineNum">    2351 </span>                :        *  It does so by calling num_put::do_put().
<span class="lineNum">    2352 </span>                :        *
<span class="lineNum">    2353 </span>                :        *  Formatting is affected by the flag settings in @a io.
<span class="lineNum">    2354 </span>                :        *
<span class="lineNum">    2355 </span>                :        *  The basic format is affected by the value of io.flags() &amp;
<span class="lineNum">    2356 </span>                :        *  ios_base::floatfield.  If equal to ios_base::fixed, formats like the
<span class="lineNum">    2357 </span>                :        *  printf %f specifier.  Else if equal to ios_base::scientific, formats
<span class="lineNum">    2358 </span>                :        *  like %e or %E with ios_base::uppercase unset or set respectively.
<span class="lineNum">    2359 </span>                :        *  Otherwise, formats like %g or %G depending on uppercase.  Note that
<span class="lineNum">    2360 </span>                :        *  if both fixed and scientific are set, the effect will also be like
<span class="lineNum">    2361 </span>                :        *  %g or %G.
<span class="lineNum">    2362 </span>                :        *
<span class="lineNum">    2363 </span>                :        *  The output precision is given by io.precision().  This precision is
<span class="lineNum">    2364 </span>                :        *  capped at numeric_limits::digits10 + 2 (different for double and
<span class="lineNum">    2365 </span>                :        *  long double).  The default precision is 6.
<span class="lineNum">    2366 </span>                :        *
<span class="lineNum">    2367 </span>                :        *  If ios_base::showpos is set, '+' is output before positive values.
<span class="lineNum">    2368 </span>                :        *  If ios_base::showpoint is set, a decimal point will always be
<span class="lineNum">    2369 </span>                :        *  output.
<span class="lineNum">    2370 </span>                :        *
<span class="lineNum">    2371 </span>                :        *  Thousands separators are inserted according to numpunct::grouping()
<span class="lineNum">    2372 </span>                :        *  and numpunct::thousands_sep().  The decimal point character used is
<span class="lineNum">    2373 </span>                :        *  numpunct::decimal_point().
<span class="lineNum">    2374 </span>                :        *
<span class="lineNum">    2375 </span>                :        *  If io.width() is non-zero, enough @a fill characters are inserted to
<span class="lineNum">    2376 </span>                :        *  make the result at least that wide.  If
<span class="lineNum">    2377 </span>                :        *  (io.flags() &amp; ios_base::adjustfield) == ios_base::left, result is
<span class="lineNum">    2378 </span>                :        *  padded at the end.  If ios_base::internal, then padding occurs
<span class="lineNum">    2379 </span>                :        *  immediately after either a '+' or '-' or after '0x' or '0X'.
<span class="lineNum">    2380 </span>                :        *  Otherwise, padding occurs at the beginning.
<span class="lineNum">    2381 </span>                :        *
<span class="lineNum">    2382 </span>                :        *  @param  s  Stream to write to.
<span class="lineNum">    2383 </span>                :        *  @param  io  Source of locale and flags.
<span class="lineNum">    2384 </span>                :        *  @param  fill  Char_type to use for filling.
<span class="lineNum">    2385 </span>                :        *  @param  v  Value to format and insert.
<span class="lineNum">    2386 </span>                :        *  @return  Iterator after writing.
<span class="lineNum">    2387 </span>                :       */
<span class="lineNum">    2388 </span>                :       iter_type
<span class="lineNum">    2389 </span>                :       put(iter_type __s, ios_base&amp; __f, char_type __fill, double __v) const
<span class="lineNum">    2390 </span>                :       { return this-&gt;do_put(__s, __f, __fill, __v); }
<span class="lineNum">    2391 </span>                : 
<span class="lineNum">    2392 </span>                :       iter_type
<span class="lineNum">    2393 </span>                :       put(iter_type __s, ios_base&amp; __f, char_type __fill,
<span class="lineNum">    2394 </span>                :           long double __v) const
<span class="lineNum">    2395 </span>                :       { return this-&gt;do_put(__s, __f, __fill, __v); }
<span class="lineNum">    2396 </span>                :       //@}
<span class="lineNum">    2397 </span>                : 
<span class="lineNum">    2398 </span>                :       /**
<span class="lineNum">    2399 </span>                :        *  @brief  Numeric formatting.
<span class="lineNum">    2400 </span>                :        *
<span class="lineNum">    2401 </span>                :        *  Formats the pointer value @a v and inserts it into a stream.  It
<span class="lineNum">    2402 </span>                :        *  does so by calling num_put::do_put().
<span class="lineNum">    2403 </span>                :        *
<span class="lineNum">    2404 </span>                :        *  This function formats @a v as an unsigned long with ios_base::hex
<span class="lineNum">    2405 </span>                :        *  and ios_base::showbase set.
<span class="lineNum">    2406 </span>                :        *
<span class="lineNum">    2407 </span>                :        *  @param  s  Stream to write to.
<span class="lineNum">    2408 </span>                :        *  @param  io  Source of locale and flags.
<span class="lineNum">    2409 </span>                :        *  @param  fill  Char_type to use for filling.
<span class="lineNum">    2410 </span>                :        *  @param  v  Value to format and insert.
<span class="lineNum">    2411 </span>                :        *  @return  Iterator after writing.
<span class="lineNum">    2412 </span>                :       */
<span class="lineNum">    2413 </span>                :       iter_type
<span class="lineNum">    2414 </span>                :       put(iter_type __s, ios_base&amp; __f, char_type __fill,
<span class="lineNum">    2415 </span>                :           const void* __v) const
<span class="lineNum">    2416 </span>                :       { return this-&gt;do_put(__s, __f, __fill, __v); }
<span class="lineNum">    2417 </span>                : 
<span class="lineNum">    2418 </span>                :     protected:
<span class="lineNum">    2419 </span>                :       template&lt;typename _ValueT&gt;
<span class="lineNum">    2420 </span>                :         iter_type
<span class="lineNum">    2421 </span>                :         _M_insert_float(iter_type, ios_base&amp; __io, char_type __fill,
<span class="lineNum">    2422 </span>                :                         char __mod, _ValueT __v) const;
<span class="lineNum">    2423 </span>                : 
<span class="lineNum">    2424 </span>                :       void
<span class="lineNum">    2425 </span>                :       _M_group_float(const char* __grouping, size_t __grouping_size,
<span class="lineNum">    2426 </span>                :                      char_type __sep, const char_type* __p, char_type* __new,
<span class="lineNum">    2427 </span>                :                      char_type* __cs, int&amp; __len) const;
<span class="lineNum">    2428 </span>                : 
<span class="lineNum">    2429 </span>                :       template&lt;typename _ValueT&gt;
<span class="lineNum">    2430 </span>                :         iter_type
<span class="lineNum">    2431 </span>                :         _M_insert_int(iter_type, ios_base&amp; __io, char_type __fill,
<span class="lineNum">    2432 </span>                :                       _ValueT __v) const;
<span class="lineNum">    2433 </span>                : 
<span class="lineNum">    2434 </span>                :       void
<span class="lineNum">    2435 </span>                :       _M_group_int(const char* __grouping, size_t __grouping_size,
<span class="lineNum">    2436 </span>                :                    char_type __sep, ios_base&amp; __io, char_type* __new,
<span class="lineNum">    2437 </span>                :                    char_type* __cs, int&amp; __len) const;
<span class="lineNum">    2438 </span>                : 
<span class="lineNum">    2439 </span>                :       void
<span class="lineNum">    2440 </span>                :       _M_pad(char_type __fill, streamsize __w, ios_base&amp; __io,
<span class="lineNum">    2441 </span>                :              char_type* __new, const char_type* __cs, int&amp; __len) const;
<span class="lineNum">    2442 </span>                : 
<span class="lineNum">    2443 </span>                :       /// Destructor.
<span class="lineNum">    2444 </span>                :       virtual
<span class="lineNum">    2445 </span>                :       ~num_put() { };
<span class="lineNum">    2446 </span>                : 
<span class="lineNum">    2447 </span>                :       //@{
<span class="lineNum">    2448 </span>                :       /**
<span class="lineNum">    2449 </span>                :        *  @brief  Numeric formatting.
<span class="lineNum">    2450 </span>                :        *
<span class="lineNum">    2451 </span>                :        *  These functions do the work of formatting numeric values and
<span class="lineNum">    2452 </span>                :        *  inserting them into a stream. This function is a hook for derived
<span class="lineNum">    2453 </span>                :        *  classes to change the value returned.
<span class="lineNum">    2454 </span>                :        *
<span class="lineNum">    2455 </span>                :        *  @param  s  Stream to write to.
<span class="lineNum">    2456 </span>                :        *  @param  io  Source of locale and flags.
<span class="lineNum">    2457 </span>                :        *  @param  fill  Char_type to use for filling.
<span class="lineNum">    2458 </span>                :        *  @param  v  Value to format and insert.
<span class="lineNum">    2459 </span>                :        *  @return  Iterator after writing.
<span class="lineNum">    2460 </span>                :       */
<span class="lineNum">    2461 </span>                :       virtual iter_type
<span class="lineNum">    2462 </span>                :       do_put(iter_type, ios_base&amp;, char_type __fill, bool __v) const;
<span class="lineNum">    2463 </span>                : 
<span class="lineNum">    2464 </span>                :       virtual iter_type
<span class="lineNum">    2465 </span>                :       do_put(iter_type __s, ios_base&amp; __io, char_type __fill, long __v) const
<span class="lineNum">    2466 </span>                :       { return _M_insert_int(__s, __io, __fill, __v); } 
<span class="lineNum">    2467 </span>                : 
<span class="lineNum">    2468 </span>                :       virtual iter_type
<span class="lineNum">    2469 </span>                :       do_put(iter_type __s, ios_base&amp; __io, char_type __fill,
<span class="lineNum">    2470 </span>                :              unsigned long __v) const
<span class="lineNum">    2471 </span>                :       { return _M_insert_int(__s, __io, __fill, __v); }
<span class="lineNum">    2472 </span>                : 
<span class="lineNum">    2473 </span>                : #ifdef _GLIBCXX_USE_LONG_LONG
<span class="lineNum">    2474 </span>                :       virtual iter_type
<span class="lineNum">    2475 </span>                :       do_put(iter_type __s, ios_base&amp; __io, char_type __fill,
<span class="lineNum">    2476 </span>                :              long long __v) const
<span class="lineNum">    2477 </span>                :       { return _M_insert_int(__s, __io, __fill, __v); }
<span class="lineNum">    2478 </span>                : 
<span class="lineNum">    2479 </span>                :       virtual iter_type
<span class="lineNum">    2480 </span>                :       do_put(iter_type __s, ios_base&amp; __io, char_type __fill,
<span class="lineNum">    2481 </span>                :              unsigned long long __v) const
<span class="lineNum">    2482 </span>                :       { return _M_insert_int(__s, __io, __fill, __v); }
<span class="lineNum">    2483 </span>                : #endif
<span class="lineNum">    2484 </span>                : 
<span class="lineNum">    2485 </span>                :       virtual iter_type
<span class="lineNum">    2486 </span>                :       do_put(iter_type, ios_base&amp;, char_type __fill, double __v) const;
<span class="lineNum">    2487 </span>                : 
<span class="lineNum">    2488 </span>                :       // XXX GLIBCXX_ABI Deprecated
<span class="lineNum">    2489 </span>                : #if defined _GLIBCXX_LONG_DOUBLE_COMPAT &amp;&amp; defined __LONG_DOUBLE_128__
<span class="lineNum">    2490 </span>                :       virtual iter_type
<span class="lineNum">    2491 </span>                :       __do_put(iter_type, ios_base&amp;, char_type __fill, double __v) const;
<span class="lineNum">    2492 </span>                : #else
<span class="lineNum">    2493 </span>                :       virtual iter_type
<span class="lineNum">    2494 </span>                :       do_put(iter_type, ios_base&amp;, char_type __fill, long double __v) const;
<span class="lineNum">    2495 </span>                : #endif
<span class="lineNum">    2496 </span>                : 
<span class="lineNum">    2497 </span>                :       virtual iter_type
<span class="lineNum">    2498 </span>                :       do_put(iter_type, ios_base&amp;, char_type __fill, const void* __v) const;
<span class="lineNum">    2499 </span>                : 
<span class="lineNum">    2500 </span>                :       // XXX GLIBCXX_ABI Deprecated
<span class="lineNum">    2501 </span>                : #if defined _GLIBCXX_LONG_DOUBLE_COMPAT &amp;&amp; defined __LONG_DOUBLE_128__
<span class="lineNum">    2502 </span>                :       virtual iter_type
<span class="lineNum">    2503 </span>                :       do_put(iter_type, ios_base&amp;, char_type __fill, long double __v) const;
<span class="lineNum">    2504 </span>                : #endif
<span class="lineNum">    2505 </span>                :       //@}
<span class="lineNum">    2506 </span>                :     };
<span class="lineNum">    2507 </span>                : 
<span class="lineNum">    2508 </span>                :   template &lt;typename _CharT, typename _OutIter&gt;
<span class="lineNum">    2509 </span>                :     locale::id num_put&lt;_CharT, _OutIter&gt;::id;
<span class="lineNum">    2510 </span>                : 
<span class="lineNum">    2511 </span>                : _GLIBCXX_END_LDBL_NAMESPACE
<span class="lineNum">    2512 </span>                : 
<span class="lineNum">    2513 </span>                :   // Subclause convenience interfaces, inlines.
<span class="lineNum">    2514 </span>                :   // NB: These are inline because, when used in a loop, some compilers
<span class="lineNum">    2515 </span>                :   // can hoist the body out of the loop; then it's just as fast as the
<span class="lineNum">    2516 </span>                :   // C is*() function.
<span class="lineNum">    2517 </span>                : 
<span class="lineNum">    2518 </span>                :   /// Convenience interface to ctype.is(ctype_base::space, __c).
<span class="lineNum">    2519 </span>                :   template&lt;typename _CharT&gt;
<span class="lineNum">    2520 </span>                :     inline bool
<span class="lineNum">    2521 </span>                :     isspace(_CharT __c, const locale&amp; __loc)
<span class="lineNum">    2522 </span>                :     { return use_facet&lt;ctype&lt;_CharT&gt; &gt;(__loc).is(ctype_base::space, __c); }
<span class="lineNum">    2523 </span>                : 
<span class="lineNum">    2524 </span>                :   /// Convenience interface to ctype.is(ctype_base::print, __c).
<span class="lineNum">    2525 </span>                :   template&lt;typename _CharT&gt;
<span class="lineNum">    2526 </span>                :     inline bool
<span class="lineNum">    2527 </span>                :     isprint(_CharT __c, const locale&amp; __loc)
<span class="lineNum">    2528 </span>                :     { return use_facet&lt;ctype&lt;_CharT&gt; &gt;(__loc).is(ctype_base::print, __c); }
<span class="lineNum">    2529 </span>                : 
<span class="lineNum">    2530 </span>                :   /// Convenience interface to ctype.is(ctype_base::cntrl, __c).
<span class="lineNum">    2531 </span>                :   template&lt;typename _CharT&gt;
<span class="lineNum">    2532 </span>                :     inline bool
<span class="lineNum">    2533 </span>                :     iscntrl(_CharT __c, const locale&amp; __loc)
<span class="lineNum">    2534 </span>                :     { return use_facet&lt;ctype&lt;_CharT&gt; &gt;(__loc).is(ctype_base::cntrl, __c); }
<span class="lineNum">    2535 </span>                : 
<span class="lineNum">    2536 </span>                :   /// Convenience interface to ctype.is(ctype_base::upper, __c).
<span class="lineNum">    2537 </span>                :   template&lt;typename _CharT&gt;
<span class="lineNum">    2538 </span>                :     inline bool
<span class="lineNum">    2539 </span>                :     isupper(_CharT __c, const locale&amp; __loc)
<span class="lineNum">    2540 </span>                :     { return use_facet&lt;ctype&lt;_CharT&gt; &gt;(__loc).is(ctype_base::upper, __c); }
<span class="lineNum">    2541 </span>                : 
<span class="lineNum">    2542 </span>                :   /// Convenience interface to ctype.is(ctype_base::lower, __c).
<span class="lineNum">    2543 </span>                :   template&lt;typename _CharT&gt;
<span class="lineNum">    2544 </span>                :     inline bool 
<span class="lineNum">    2545 </span>                :     islower(_CharT __c, const locale&amp; __loc)
<span class="lineNum">    2546 </span>                :     { return use_facet&lt;ctype&lt;_CharT&gt; &gt;(__loc).is(ctype_base::lower, __c); }
<span class="lineNum">    2547 </span>                : 
<span class="lineNum">    2548 </span>                :   /// Convenience interface to ctype.is(ctype_base::alpha, __c).
<span class="lineNum">    2549 </span>                :   template&lt;typename _CharT&gt;
<span class="lineNum">    2550 </span>                :     inline bool
<span class="lineNum">    2551 </span>                :     isalpha(_CharT __c, const locale&amp; __loc)
<span class="lineNum">    2552 </span>                :     { return use_facet&lt;ctype&lt;_CharT&gt; &gt;(__loc).is(ctype_base::alpha, __c); }
<span class="lineNum">    2553 </span>                : 
<span class="lineNum">    2554 </span>                :   /// Convenience interface to ctype.is(ctype_base::digit, __c).
<span class="lineNum">    2555 </span>                :   template&lt;typename _CharT&gt;
<span class="lineNum">    2556 </span>                :     inline bool
<span class="lineNum">    2557 </span>                :     isdigit(_CharT __c, const locale&amp; __loc)
<span class="lineNum">    2558 </span>                :     { return use_facet&lt;ctype&lt;_CharT&gt; &gt;(__loc).is(ctype_base::digit, __c); }
<span class="lineNum">    2559 </span>                : 
<span class="lineNum">    2560 </span>                :   /// Convenience interface to ctype.is(ctype_base::punct, __c).
<span class="lineNum">    2561 </span>                :   template&lt;typename _CharT&gt;
<span class="lineNum">    2562 </span>                :     inline bool
<span class="lineNum">    2563 </span>                :     ispunct(_CharT __c, const locale&amp; __loc)
<span class="lineNum">    2564 </span>                :     { return use_facet&lt;ctype&lt;_CharT&gt; &gt;(__loc).is(ctype_base::punct, __c); }
<span class="lineNum">    2565 </span>                : 
<span class="lineNum">    2566 </span>                :   /// Convenience interface to ctype.is(ctype_base::xdigit, __c).
<span class="lineNum">    2567 </span>                :   template&lt;typename _CharT&gt;
<span class="lineNum">    2568 </span>                :     inline bool
<span class="lineNum">    2569 </span>                :     isxdigit(_CharT __c, const locale&amp; __loc)
<span class="lineNum">    2570 </span>                :     { return use_facet&lt;ctype&lt;_CharT&gt; &gt;(__loc).is(ctype_base::xdigit, __c); }
<span class="lineNum">    2571 </span>                : 
<span class="lineNum">    2572 </span>                :   /// Convenience interface to ctype.is(ctype_base::alnum, __c).
<span class="lineNum">    2573 </span>                :   template&lt;typename _CharT&gt;
<span class="lineNum">    2574 </span>                :     inline bool
<span class="lineNum">    2575 </span>                :     isalnum(_CharT __c, const locale&amp; __loc)
<span class="lineNum">    2576 </span>                :     { return use_facet&lt;ctype&lt;_CharT&gt; &gt;(__loc).is(ctype_base::alnum, __c); }
<span class="lineNum">    2577 </span>                : 
<span class="lineNum">    2578 </span>                :   /// Convenience interface to ctype.is(ctype_base::graph, __c).
<span class="lineNum">    2579 </span>                :   template&lt;typename _CharT&gt;
<span class="lineNum">    2580 </span>                :     inline bool
<span class="lineNum">    2581 </span>                :     isgraph(_CharT __c, const locale&amp; __loc)
<span class="lineNum">    2582 </span>                :     { return use_facet&lt;ctype&lt;_CharT&gt; &gt;(__loc).is(ctype_base::graph, __c); }
<span class="lineNum">    2583 </span>                : 
<span class="lineNum">    2584 </span>                :   /// Convenience interface to ctype.toupper(__c).
<span class="lineNum">    2585 </span>                :   template&lt;typename _CharT&gt;
<span class="lineNum">    2586 </span>                :     inline _CharT
<span class="lineNum">    2587 </span>                :     toupper(_CharT __c, const locale&amp; __loc)
<span class="lineNum">    2588 </span>                :     { return use_facet&lt;ctype&lt;_CharT&gt; &gt;(__loc).toupper(__c); }
<span class="lineNum">    2589 </span>                : 
<span class="lineNum">    2590 </span>                :   /// Convenience interface to ctype.tolower(__c).
<span class="lineNum">    2591 </span>                :   template&lt;typename _CharT&gt;
<span class="lineNum">    2592 </span>                :     inline _CharT
<span class="lineNum">    2593 </span>                :     tolower(_CharT __c, const locale&amp; __loc)
<span class="lineNum">    2594 </span>                :     { return use_facet&lt;ctype&lt;_CharT&gt; &gt;(__loc).tolower(__c); }
<span class="lineNum">    2595 </span>                : 
<span class="lineNum">    2596 </span>                : _GLIBCXX_END_NAMESPACE
<span class="lineNum">    2597 </span>                : 
<span class="lineNum">    2598 </span>                : #ifndef _GLIBCXX_EXPORT_TEMPLATE
<span class="lineNum">    2599 </span>                : # include &lt;bits/locale_facets.tcc&gt;
<span class="lineNum">    2600 </span>                : #endif
<span class="lineNum">    2601 </span>                : 
<span class="lineNum">    2602 </span>                : #endif
</pre>
      </td>
    </tr>
  </table>
  <br>

  <table width="100%" border=0 cellspacing=0 cellpadding=0>
  <tr><td class="ruler"><img src="../../../../../glass.png" width=3 height=3 alt=""></td></tr>
  <tr><td class="versionInfo">Generated by: <a href="http://ltp.sourceforge.net/coverage/lcov.php" target="_parent">LTP GCOV extension version 1.6</a></td></tr>
  </table>
  <br>

</body>
</html>
